package org.springblade.modules.sga.controller;

import cn.hutool.core.io.FileTypeUtil;
import cn.hutool.json.JSONUtil;
import cn.hutool.poi.word.WordUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.wfl.uias.common.JsonUtils;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import org.springblade.common.cache.CacheNames;
import org.springblade.common.constant.PolicyConstant;
import org.springblade.common.tool.QrcodeUtils;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.core.tool.utils.Func;
import org.springblade.core.tool.utils.RedisUtil;
import org.springblade.modules.appeal.entity.Appeal;
import org.springblade.modules.appeal.entity.AppealRecord;
import org.springblade.modules.appeal.service.IAppealRecordService;
import org.springblade.modules.appeal.service.IAppealService;
import org.springblade.modules.enterprise.entity.Enterprise;
import org.springblade.modules.enterprise.entity.EnterpriseMaterial;
import org.springblade.modules.enterprise.entity.EnterpriseProject;
import org.springblade.modules.enterprise.service.IEnterpriseMaterialService;
import org.springblade.modules.enterprise.service.IEnterpriseProjectService;
import org.springblade.modules.enterprise.service.IEnterpriseService;
import org.springblade.modules.enterprise.vo.EnterpriseLegalInfoVO;
import org.springblade.modules.enterprise.vo.EnterpriseProjectVO;
import org.springblade.modules.policy.dto.CashAcceptDTO;
import org.springblade.modules.policy.entity.MatMatter;
import org.springblade.modules.policy.entity.Proposal;
import org.springblade.modules.policy.service.IMatMatterService;
import org.springblade.modules.policy.service.IPolicyDrawService;
import org.springblade.modules.policy.service.IProposalService;
import org.springblade.modules.policy.vo.PolicyPushVO;
import org.springblade.modules.policy.vo.ProposalVO;
import org.springblade.modules.sga.dto.GetUserInfoDTO;
import org.springblade.modules.sga.dto.ProposalCreateDTO;
import org.springblade.modules.sga.service.ISgaAwardCorporateService;
import org.springblade.modules.sga.service.ISgaDictService;
import org.springblade.modules.sga.service.ISgaPolicyDrawService;
import org.springblade.modules.sga.service.ISgaPolicyService;
import org.springblade.modules.sga.vo.*;
import org.springblade.modules.sga.wrapper.SgaPolicyDrawWrapper;
import org.springblade.modules.sga.wrapper.SgaPolicyWrapper;
import org.springblade.modules.system.entity.DictItem;
import org.springblade.modules.system.entity.File;
import org.springblade.modules.system.service.IDictItemService;
import org.springblade.modules.system.service.IFileService;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;
import java.lang.String;

@CrossOrigin
@RestController
@AllArgsConstructor
@RequestMapping("/sga/policy")
public class SgaPolicyController {

	private RedisUtil redisUtil;

	private ISgaPolicyService policyService;
	private ISgaPolicyDrawService sgaPolicyDrawService;
	private IPolicyDrawService policyDrawService;
	private ISgaAwardCorporateService awardCorporateService;
	private ISgaDictService dictService;
	private IEnterpriseService enterpriseService;
	private IMatMatterService matMatterService;
	private IFileService fileService;
	private IAppealService appealService;
	private IAppealRecordService appealRecordService;
	private IProposalService proposalService;
	private IEnterpriseMaterialService enterpriseMaterialService;
	private IEnterpriseProjectService enterpriseProjectService;
	private IDictItemService dictItemService;

	@PostMapping("/webInterface/selectDictList")
	public R<Object> selectDictList(@ApiParam(value = "字典类型", required = true) @RequestParam("typeList") String typeList) {
//		Object data = JSON.parse("{\"Industry_classification_new\":{\"id\":401,\"type\":\"Industry_classification_new\",\"description\":\" 行业分类\",\"createTime\":\"2021-04-22 14:39:36\",\"updateTime\":\"2021-04-22 14:39:36\",\"system\":\"0\",\"remarks\":\" 行业分类\",\"delFlag\":\"0\",\"tenantId\":1,\"dictItemList\":[{\"id\":4045,\"dictId\":401,\"value\":\"A\",\"label\":\"农、林、牧、渔业\",\"type\":\"Industry_classification_new\",\"description\":\"农、林、牧、渔业\",\"sort\":1,\"createTime\":\"2021-04-22 14:40:38\",\"updateTime\":\"2021-10-12 11:57:06\",\"remarks\":\"农、林、牧、渔业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4046,\"dictId\":401,\"value\":\"C\",\"label\":\"制造业\",\"type\":\"Industry_classification_new\",\"description\":\"制造业\",\"sort\":2,\"createTime\":\"2021-04-22 14:40:46\",\"updateTime\":\"2021-10-12 11:57:34\",\"remarks\":\"制造业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4047,\"dictId\":401,\"value\":\"D\",\"label\":\"电力、热力、燃气及水生产和供应业\",\"type\":\"Industry_classification_new\",\"description\":\"电力、热力、燃气及水生产和供应业\",\"sort\":3,\"createTime\":\"2021-04-22 14:40:54\",\"updateTime\":\"2021-10-12 11:57:50\",\"remarks\":\"电力、热力、燃气及水生产和供应业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4048,\"dictId\":401,\"value\":\"F\",\"label\":\"批发和零售业\",\"type\":\"Industry_classification_new\",\"description\":\"批发和零售业\",\"sort\":4,\"createTime\":\"2021-04-22 14:41:04\",\"updateTime\":\"2021-10-12 11:58:20\",\"remarks\":\"批发和零售业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4049,\"dictId\":401,\"value\":\"G\",\"label\":\"交通运输、仓储和邮政业\",\"type\":\"Industry_classification_new\",\"description\":\"交通运输、仓储和邮政业\",\"sort\":5,\"createTime\":\"2021-04-22 14:41:14\",\"updateTime\":\"2021-10-12 11:58:34\",\"remarks\":\"交通运输、仓储和邮政业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4050,\"dictId\":401,\"value\":\"H\",\"label\":\"住宿和餐饮业\",\"type\":\"Industry_classification_new\",\"description\":\"住宿和餐饮业\",\"sort\":6,\"createTime\":\"2021-04-22 14:41:25\",\"updateTime\":\"2021-10-12 11:58:49\",\"remarks\":\"住宿和餐饮业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4051,\"dictId\":401,\"value\":\"K\",\"label\":\"房地产业\",\"type\":\"Industry_classification_new\",\"description\":\"房地产业\",\"sort\":7,\"createTime\":\"2021-04-22 14:41:35\",\"updateTime\":\"2021-10-12 12:08:08\",\"remarks\":\"房地产业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4052,\"dictId\":401,\"value\":\"R\",\"label\":\"文化、体育和娱乐业\",\"type\":\"Industry_classification_new\",\"description\":\"文化、体育和娱乐业\",\"sort\":8,\"createTime\":\"2021-04-22 14:41:46\",\"updateTime\":\"2021-10-12 12:02:36\",\"remarks\":\"文化、体育和娱乐业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4053,\"dictId\":401,\"value\":\"J\",\"label\":\"金融业\",\"type\":\"Industry_classification_new\",\"description\":\"金融业\",\"sort\":9,\"createTime\":\"2021-04-22 14:41:57\",\"updateTime\":\"2021-10-12 12:03:52\",\"remarks\":\"金融业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4054,\"dictId\":401,\"value\":\"I\",\"label\":\"信息传输、软件和信息技术服务业\",\"type\":\"Industry_classification_new\",\"description\":\"信息传输、软件和信息技术服务业\",\"sort\":10,\"createTime\":\"2021-04-22 14:42:09\",\"updateTime\":\"2021-10-12 12:04:18\",\"remarks\":\"信息传输、软件和信息技术服务业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4055,\"dictId\":401,\"value\":\"L\",\"label\":\"租赁和商务服务业\",\"type\":\"Industry_classification_new\",\"description\":\"租赁和商务服务业\",\"sort\":11,\"createTime\":\"2021-04-22 14:42:18\",\"updateTime\":\"2021-10-12 12:04:28\",\"remarks\":\"租赁和商务服务业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4056,\"dictId\":401,\"value\":\"M\",\"label\":\"科学研究和技术服务业\",\"type\":\"Industry_classification_new\",\"description\":\"科学研究和技术服务业\",\"sort\":12,\"createTime\":\"2021-04-22 14:42:29\",\"updateTime\":\"2021-10-12 12:02:55\",\"remarks\":\"科学研究和技术服务业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4057,\"dictId\":401,\"value\":\"E\",\"label\":\"建筑业\",\"type\":\"Industry_classification_new\",\"description\":\"建筑业\",\"sort\":13,\"createTime\":\"2021-04-22 14:42:39\",\"updateTime\":\"2021-10-12 12:04:40\",\"remarks\":\"建筑业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4058,\"dictId\":401,\"value\":\"N\",\"label\":\"水利、环境和公共设施管理业\",\"type\":\"Industry_classification_new\",\"description\":\"水利、环境和公共设施管理业\",\"sort\":14,\"createTime\":\"2021-04-22 14:42:47\",\"updateTime\":\"2021-10-12 12:02:22\",\"remarks\":\"水利、环境和公共设施管理业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4059,\"dictId\":401,\"value\":\"O\",\"label\":\"居民服务、修理和其他服务业\",\"type\":\"Industry_classification_new\",\"description\":\"居民服务、修理和其他服务业\",\"sort\":15,\"createTime\":\"2021-04-22 14:42:54\",\"updateTime\":\"2021-10-12 12:02:03\",\"remarks\":\"居民服务、修理和其他服务业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4060,\"dictId\":401,\"value\":\"P\",\"label\":\"教育\",\"type\":\"Industry_classification_new\",\"description\":\"教育\",\"sort\":16,\"createTime\":\"2021-04-22 14:43:03\",\"updateTime\":\"2021-10-12 12:01:36\",\"remarks\":\"教育\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4061,\"dictId\":401,\"value\":\"Q\",\"label\":\"卫生和社会工作\",\"type\":\"Industry_classification_new\",\"description\":\"卫生和社会工作\",\"sort\":17,\"createTime\":\"2021-04-22 14:43:12\",\"updateTime\":\"2021-10-12 12:01:01\",\"remarks\":\"卫生和社会工作\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4062,\"dictId\":401,\"value\":\"B\",\"label\":\"采矿业\",\"type\":\"Industry_classification_new\",\"description\":\"采矿业\",\"sort\":18,\"createTime\":\"2021-04-22 14:43:21\",\"updateTime\":\"2021-10-12 12:01:21\",\"remarks\":\"采矿业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4063,\"dictId\":401,\"value\":\"S\",\"label\":\"公共管理、社会保障和社会组织\",\"type\":\"Industry_classification_new\",\"description\":\"公共管理、社会保障和社会组织\",\"sort\":19,\"createTime\":\"2021-04-22 14:44:23\",\"updateTime\":\"2021-10-12 12:00:40\",\"remarks\":\"公共管理、社会保障和社会组织\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4064,\"dictId\":401,\"value\":\"T\",\"label\":\"国际组织\",\"type\":\"Industry_classification_new\",\"description\":\"国际组织\",\"sort\":20,\"createTime\":\"2021-04-22 14:44:32\",\"updateTime\":\"2021-10-12 12:00:19\",\"remarks\":\"国际组织\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]}]},\"enterprise_characteristics\":{\"id\":397,\"type\":\"enterprise_characteristics\",\"description\":\"企业特色分类\",\"createTime\":\"2021-02-24 10:15:39\",\"updateTime\":\"2021-02-24 11:12:37\",\"system\":\"0\",\"remarks\":\"企业特色分类\",\"delFlag\":\"0\",\"tenantId\":1,\"dictItemList\":[{\"id\":4021,\"dictId\":397,\"value\":\"1\",\"label\":\"上市企业\",\"type\":\"enterprise_characteristics\",\"description\":\"上市企业\",\"sort\":1,\"createTime\":\"2021-04-22 10:24:03\",\"updateTime\":\"2021-04-22 10:24:03\",\"remarks\":\"上市企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4022,\"dictId\":397,\"value\":\"2\",\"label\":\"拟上市企业\",\"type\":\"enterprise_characteristics\",\"description\":\"拟上市企业\",\"sort\":2,\"createTime\":\"2021-04-22 10:24:11\",\"updateTime\":\"2021-04-22 10:24:11\",\"remarks\":\"拟上市企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4023,\"dictId\":397,\"value\":\"3\",\"label\":\"重点保障企业\",\"type\":\"enterprise_characteristics\",\"description\":\"重点保障企业\",\"sort\":3,\"createTime\":\"2021-04-22 10:24:18\",\"updateTime\":\"2021-04-22 10:24:18\",\"remarks\":\"重点保障企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4024,\"dictId\":397,\"value\":\"4\",\"label\":\"创业载体\",\"type\":\"enterprise_characteristics\",\"description\":\"创业载体\",\"sort\":4,\"createTime\":\"2021-04-22 10:24:25\",\"updateTime\":\"2021-04-22 10:24:25\",\"remarks\":\"创业载体\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4025,\"dictId\":397,\"value\":\"5\",\"label\":\"高新技术产业\",\"type\":\"enterprise_characteristics\",\"description\":\"高新技术产业\",\"sort\":5,\"createTime\":\"2021-04-22 10:24:35\",\"updateTime\":\"2021-04-22 10:24:35\",\"remarks\":\"高新技术产业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4026,\"dictId\":397,\"value\":\"6\",\"label\":\"战略性新兴企业\",\"type\":\"enterprise_characteristics\",\"description\":\"战略性新兴企业\",\"sort\":6,\"createTime\":\"2021-04-22 10:24:43\",\"updateTime\":\"2021-04-22 10:24:43\",\"remarks\":\"战略性新兴企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4027,\"dictId\":397,\"value\":\"7\",\"label\":\"新型研发机构\",\"type\":\"enterprise_characteristics\",\"description\":\"新型研发机构\",\"sort\":7,\"createTime\":\"2021-04-22 10:24:51\",\"updateTime\":\"2021-04-22 10:24:51\",\"remarks\":\"新型研发机构\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4028,\"dictId\":397,\"value\":\"8\",\"label\":\"实训基地\",\"type\":\"enterprise_characteristics\",\"description\":\"实训基地\",\"sort\":8,\"createTime\":\"2021-04-22 10:25:00\",\"updateTime\":\"2021-04-22 10:25:00\",\"remarks\":\"实训基地\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4029,\"dictId\":397,\"value\":\"9\",\"label\":\"产业园区\",\"type\":\"enterprise_characteristics\",\"description\":\"产业园区\",\"sort\":9,\"createTime\":\"2021-04-22 10:25:24\",\"updateTime\":\"2021-04-22 10:25:24\",\"remarks\":\"产业园区\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4030,\"dictId\":397,\"value\":\"10\",\"label\":\"“专精特新”型企业\",\"type\":\"enterprise_characteristics\",\"description\":\"“专精特新”型企业\",\"sort\":10,\"createTime\":\"2021-04-22 10:25:37\",\"updateTime\":\"2021-04-22 10:25:37\",\"remarks\":\"“专精特新”型企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4031,\"dictId\":397,\"value\":\"11\",\"label\":\"小型企业双创基地\",\"type\":\"enterprise_characteristics\",\"description\":\"小型企业双创基地\",\"sort\":11,\"createTime\":\"2021-04-22 10:25:46\",\"updateTime\":\"2021-04-22 10:25:46\",\"remarks\":\"小型企业双创基地\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4032,\"dictId\":397,\"value\":\"12\",\"label\":\"科技企业孵化器\",\"type\":\"enterprise_characteristics\",\"description\":\"科技企业孵化器\",\"sort\":12,\"createTime\":\"2021-04-22 10:25:54\",\"updateTime\":\"2021-04-22 10:25:54\",\"remarks\":\"科技企业孵化器\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4033,\"dictId\":397,\"value\":\"13\",\"label\":\"创业孵化基地\",\"type\":\"enterprise_characteristics\",\"description\":\"创业孵化基地\",\"sort\":13,\"createTime\":\"2021-04-22 10:26:03\",\"updateTime\":\"2021-04-22 10:26:03\",\"remarks\":\"创业孵化基地\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4034,\"dictId\":397,\"value\":\"14\",\"label\":\"“四上”在库企业\",\"type\":\"enterprise_characteristics\",\"description\":\"“四上”在库企业\",\"sort\":14,\"createTime\":\"2021-04-22 10:26:12\",\"updateTime\":\"2021-04-22 10:26:12\",\"remarks\":\"“四上”在库企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4035,\"dictId\":397,\"value\":\"15\",\"label\":\"骨干企业\",\"type\":\"enterprise_characteristics\",\"description\":\"骨干企业\",\"sort\":15,\"createTime\":\"2021-04-22 10:26:20\",\"updateTime\":\"2021-04-22 10:26:20\",\"remarks\":\"骨干企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4036,\"dictId\":397,\"value\":\"16\",\"label\":\"科技成长企业\",\"type\":\"enterprise_characteristics\",\"description\":\"科技成长企业\",\"sort\":16,\"createTime\":\"2021-04-22 10:26:29\",\"updateTime\":\"2021-04-22 10:26:29\",\"remarks\":\"科技成长企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4037,\"dictId\":397,\"value\":\"17\",\"label\":\"外贸企业\",\"type\":\"enterprise_characteristics\",\"description\":\"外贸企业\",\"sort\":17,\"createTime\":\"2021-04-22 10:26:38\",\"updateTime\":\"2021-04-22 10:26:38\",\"remarks\":\"外贸企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4038,\"dictId\":397,\"value\":\"18\",\"label\":\"商贸企业\",\"type\":\"enterprise_characteristics\",\"description\":\"商贸企业\",\"sort\":18,\"createTime\":\"2021-04-22 10:26:47\",\"updateTime\":\"2021-04-22 10:26:47\",\"remarks\":\"商贸企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4039,\"dictId\":397,\"value\":\"19\",\"label\":\"工业百强企业\",\"type\":\"enterprise_characteristics\",\"description\":\"工业百强企业\",\"sort\":19,\"createTime\":\"2021-04-22 10:26:56\",\"updateTime\":\"2021-04-22 10:26:56\",\"remarks\":\"工业百强企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4040,\"dictId\":397,\"value\":\"20\",\"label\":\"农业龙头企业\",\"type\":\"enterprise_characteristics\",\"description\":\"农业龙头企业\",\"sort\":20,\"createTime\":\"2021-04-22 10:27:22\",\"updateTime\":\"2021-04-22 10:27:22\",\"remarks\":\"农业龙头企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4041,\"dictId\":397,\"value\":\"21\",\"label\":\"异地产业园\",\"type\":\"enterprise_characteristics\",\"description\":\"异地产业园\",\"sort\":21,\"createTime\":\"2021-04-22 10:27:29\",\"updateTime\":\"2021-04-22 10:27:29\",\"remarks\":\"异地产业园\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4042,\"dictId\":397,\"value\":\"22\",\"label\":\"金融业集聚园区\",\"type\":\"enterprise_characteristics\",\"description\":\"金融业集聚园区\",\"sort\":22,\"createTime\":\"2021-04-22 10:27:39\",\"updateTime\":\"2021-04-22 10:27:39\",\"remarks\":\"金融业集聚园区\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4043,\"dictId\":397,\"value\":\"23\",\"label\":\"新三板企业\",\"type\":\"enterprise_characteristics\",\"description\":\"新三板企业\",\"sort\":23,\"createTime\":\"2021-04-22 10:27:47\",\"updateTime\":\"2021-04-22 10:27:47\",\"remarks\":\"新三板企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4044,\"dictId\":397,\"value\":\"24\",\"label\":\"其他\",\"type\":\"enterprise_characteristics\",\"description\":\"其他\",\"sort\":24,\"createTime\":\"2021-04-22 10:27:56\",\"updateTime\":\"2021-04-22 10:27:56\",\"remarks\":\"其他\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]}]},\"policy_types\":{\"id\":396,\"type\":\"policy_types\",\"description\":\"政策类型\",\"createTime\":\"2021-02-23 14:27:00\",\"updateTime\":\"2021-02-23 14:27:00\",\"system\":\"0\",\"remarks\":\"政策类型\",\"delFlag\":\"0\",\"tenantId\":1,\"dictItemList\":[{\"id\":3982,\"dictId\":396,\"value\":\"3\",\"label\":\"社保减免\",\"type\":\"policy_types\",\"description\":\"社保减免\",\"sort\":3,\"createTime\":\"2021-04-22 10:08:39\",\"updateTime\":\"2021-04-22 10:08:39\",\"remarks\":\"社保减免\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3983,\"dictId\":396,\"value\":\"4\",\"label\":\"稳岗补贴\",\"type\":\"policy_types\",\"description\":\"稳岗补贴\",\"sort\":4,\"createTime\":\"2021-04-22 10:08:51\",\"updateTime\":\"2021-04-22 10:08:51\",\"remarks\":\"稳岗补贴\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3984,\"dictId\":396,\"value\":\"5\",\"label\":\"行业扶持\",\"type\":\"policy_types\",\"description\":\"行业扶持\",\"sort\":5,\"createTime\":\"2021-04-22 10:09:04\",\"updateTime\":\"2021-04-22 10:09:04\",\"remarks\":\"行业扶持\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3985,\"dictId\":396,\"value\":\"6\",\"label\":\"新锐企业\",\"type\":\"policy_types\",\"description\":\"新锐企业\",\"sort\":6,\"createTime\":\"2021-04-22 10:09:19\",\"updateTime\":\"2021-04-22 10:09:19\",\"remarks\":\"新锐企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3986,\"dictId\":396,\"value\":\"7\",\"label\":\"融资支持\",\"type\":\"policy_types\",\"description\":\"融资支持\",\"sort\":7,\"createTime\":\"2021-04-22 10:09:31\",\"updateTime\":\"2021-04-22 10:09:31\",\"remarks\":\"融资支持\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3987,\"dictId\":396,\"value\":\"8\",\"label\":\"就业创业\",\"type\":\"policy_types\",\"description\":\"就业创业\",\"sort\":8,\"createTime\":\"2021-04-22 10:09:40\",\"updateTime\":\"2021-04-22 10:09:40\",\"remarks\":\"就业创业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3988,\"dictId\":396,\"value\":\"9\",\"label\":\"创新转型\",\"type\":\"policy_types\",\"description\":\"创新转型\",\"sort\":9,\"createTime\":\"2021-04-22 10:09:53\",\"updateTime\":\"2021-04-22 10:09:53\",\"remarks\":\"创新转型\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3989,\"dictId\":396,\"value\":\"10\",\"label\":\"招商引资\",\"type\":\"policy_types\",\"description\":\"招商引资\",\"sort\":10,\"createTime\":\"2021-04-22 10:10:04\",\"updateTime\":\"2021-04-22 10:10:04\",\"remarks\":\"招商引资\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3990,\"dictId\":396,\"value\":\"11\",\"label\":\"工业互联网\",\"type\":\"policy_types\",\"description\":\"工业互联网\",\"sort\":11,\"createTime\":\"2021-04-22 10:10:14\",\"updateTime\":\"2021-04-22 10:10:14\",\"remarks\":\"工业互联网\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3991,\"dictId\":396,\"value\":\"12\",\"label\":\"税费政策\",\"type\":\"policy_types\",\"description\":\"税费政策\",\"sort\":12,\"createTime\":\"2021-04-22 10:10:26\",\"updateTime\":\"2021-04-22 10:10:26\",\"remarks\":\"税费政策\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3992,\"dictId\":396,\"value\":\"13\",\"label\":\"人才支持\",\"type\":\"policy_types\",\"description\":\"人才支持\",\"sort\":13,\"createTime\":\"2021-04-22 10:10:39\",\"updateTime\":\"2021-04-22 10:10:39\",\"remarks\":\"人才支持\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3993,\"dictId\":396,\"value\":\"14\",\"label\":\"做大做强\",\"type\":\"policy_types\",\"description\":\"做大做强\",\"sort\":14,\"createTime\":\"2021-04-22 10:10:48\",\"updateTime\":\"2021-04-22 10:10:48\",\"remarks\":\"做大做强\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3994,\"dictId\":396,\"value\":\"15\",\"label\":\"市场开拓\",\"type\":\"policy_types\",\"description\":\"市场开拓\",\"sort\":15,\"createTime\":\"2021-04-22 10:11:01\",\"updateTime\":\"2021-04-22 10:11:01\",\"remarks\":\"市场开拓\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3995,\"dictId\":396,\"value\":\"16\",\"label\":\"知识产权\",\"type\":\"policy_types\",\"description\":\"知识产权\",\"sort\":16,\"createTime\":\"2021-04-22 10:11:11\",\"updateTime\":\"2021-04-22 10:11:11\",\"remarks\":\"知识产权\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3996,\"dictId\":396,\"value\":\"17\",\"label\":\"检验检测中心\",\"type\":\"policy_types\",\"description\":\"检验检测中心\",\"sort\":17,\"createTime\":\"2021-04-22 10:11:22\",\"updateTime\":\"2021-04-22 10:11:22\",\"remarks\":\"检验检测中心\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3997,\"dictId\":396,\"value\":\"18\",\"label\":\"营商环境\",\"type\":\"policy_types\",\"description\":\"营商环境\",\"sort\":18,\"createTime\":\"2021-04-22 10:11:33\",\"updateTime\":\"2021-04-22 10:11:33\",\"remarks\":\"营商环境\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3998,\"dictId\":396,\"value\":\"19\",\"label\":\"政府采购\",\"type\":\"policy_types\",\"description\":\"政府采购\",\"sort\":19,\"createTime\":\"2021-04-22 10:11:43\",\"updateTime\":\"2021-04-22 10:11:43\",\"remarks\":\"政府采购\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3999,\"dictId\":396,\"value\":\"20\",\"label\":\"节能环保\",\"type\":\"policy_types\",\"description\":\"节能环保\",\"sort\":20,\"createTime\":\"2021-04-22 10:11:57\",\"updateTime\":\"2021-04-22 10:11:57\",\"remarks\":\"节能环保\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4000,\"dictId\":396,\"value\":\"21\",\"label\":\"土地政策\",\"type\":\"policy_types\",\"description\":\"土地政策\",\"sort\":21,\"createTime\":\"2021-04-22 10:12:09\",\"updateTime\":\"2021-04-22 10:12:09\",\"remarks\":\"土地政策\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4001,\"dictId\":396,\"value\":\"22\",\"label\":\"中小企业\",\"type\":\"policy_types\",\"description\":\"中小企业\",\"sort\":22,\"createTime\":\"2021-04-22 10:12:19\",\"updateTime\":\"2021-04-22 10:12:19\",\"remarks\":\"中小企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4002,\"dictId\":396,\"value\":\"23\",\"label\":\"民营经济\",\"type\":\"policy_types\",\"description\":\"民营经济\",\"sort\":23,\"createTime\":\"2021-04-22 10:12:27\",\"updateTime\":\"2021-04-22 10:12:27\",\"remarks\":\"民营经济\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4003,\"dictId\":396,\"value\":\"24\",\"label\":\"企业管理\",\"type\":\"policy_types\",\"description\":\"企业管理\",\"sort\":24,\"createTime\":\"2021-04-22 10:12:37\",\"updateTime\":\"2021-04-22 10:12:37\",\"remarks\":\"企业管理\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4004,\"dictId\":396,\"value\":\"25\",\"label\":\"房租减免\",\"type\":\"policy_types\",\"description\":\"房租减免\",\"sort\":25,\"createTime\":\"2021-04-22 10:12:47\",\"updateTime\":\"2021-04-22 10:12:47\",\"remarks\":\"房租减免\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4007,\"dictId\":396,\"value\":\"28\",\"label\":\"商标注册\",\"type\":\"policy_types\",\"description\":\"商标注册\",\"sort\":28,\"createTime\":\"2021-04-22 10:13:20\",\"updateTime\":\"2021-04-22 10:13:20\",\"remarks\":\"商标注册\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4008,\"dictId\":396,\"value\":\"29\",\"label\":\"专利创造\",\"type\":\"policy_types\",\"description\":\"专利创造\",\"sort\":29,\"createTime\":\"2021-04-22 10:13:33\",\"updateTime\":\"2021-04-22 10:13:33\",\"remarks\":\"专利创造\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4009,\"dictId\":396,\"value\":\"30\",\"label\":\"其他\",\"type\":\"policy_types\",\"description\":\"其他\",\"sort\":30,\"createTime\":\"2021-04-22 10:13:44\",\"updateTime\":\"2021-04-22 10:13:44\",\"remarks\":\"其他\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]}]},\"material_necessity\":{\"id\":393,\"type\":\"material_necessity\",\"description\":\"材料必要性\",\"createTime\":\"2021-02-03 17:17:56\",\"updateTime\":\"2021-02-03 17:17:56\",\"system\":\"0\",\"remarks\":\"材料必要性\",\"delFlag\":\"0\",\"tenantId\":1,\"dictItemList\":[{\"id\":2969,\"dictId\":393,\"value\":\"1\",\"label\":\"必要\",\"type\":\"material_necessity\",\"description\":\"必要\",\"sort\":1,\"createTime\":\"2021-02-03 17:18:21\",\"updateTime\":\"2021-02-03 17:18:21\",\"remarks\":\"必要\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":2970,\"dictId\":393,\"value\":\"2\",\"label\":\"非必要\",\"type\":\"material_necessity\",\"description\":\"非必要\",\"sort\":2,\"createTime\":\"2021-02-03 17:18:34\",\"updateTime\":\"2021-02-03 17:18:34\",\"remarks\":\"非必要\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":2971,\"dictId\":393,\"value\":\"3\",\"label\":\"容缺后补\",\"type\":\"material_necessity\",\"description\":\"容缺后补\",\"sort\":3,\"createTime\":\"2021-02-03 17:18:58\",\"updateTime\":\"2021-02-03 17:18:58\",\"remarks\":\"容缺后补\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]}]},\"enterprise_type_second\":{\"id\":359,\"type\":\"enterprise_type_second\",\"description\":\"企业类型2\",\"createTime\":\"2020-10-22 14:43:20\",\"updateTime\":\"2020-10-22 14:59:23\",\"system\":\"0\",\"remarks\":\"企业类型2\",\"delFlag\":\"0\",\"tenantId\":1,\"dictItemList\":[{\"id\":4090,\"dictId\":359,\"value\":\"1\",\"label\":\"国有企业\",\"type\":\"enterprise_type_second\",\"description\":\"国有企业\",\"sort\":1,\"createTime\":\"2021-04-25 16:32:24\",\"updateTime\":\"2021-04-25 16:32:24\",\"remarks\":\"国有企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4091,\"dictId\":359,\"value\":\"2\",\"label\":\"集体所有制\",\"type\":\"enterprise_type_second\",\"description\":\"集体所有制\",\"sort\":2,\"createTime\":\"2021-04-25 16:32:31\",\"updateTime\":\"2021-04-25 16:32:31\",\"remarks\":\"集体所有制\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4092,\"dictId\":359,\"value\":\"3\",\"label\":\"私营企业\",\"type\":\"enterprise_type_second\",\"description\":\"私营企业\",\"sort\":3,\"createTime\":\"2021-04-25 16:32:40\",\"updateTime\":\"2021-04-25 16:32:40\",\"remarks\":\"私营企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4093,\"dictId\":359,\"value\":\"4\",\"label\":\"股份制企业\",\"type\":\"enterprise_type_second\",\"description\":\"股份制企业\",\"sort\":4,\"createTime\":\"2021-04-25 16:32:49\",\"updateTime\":\"2021-04-25 16:32:56\",\"remarks\":\"股份制企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4094,\"dictId\":359,\"value\":\"5\",\"label\":\"有限合伙企业\",\"type\":\"enterprise_type_second\",\"description\":\"有限合伙企业\",\"sort\":5,\"createTime\":\"2021-04-25 16:33:03\",\"updateTime\":\"2021-04-25 16:33:03\",\"remarks\":\"有限合伙企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4095,\"dictId\":359,\"value\":\"6\",\"label\":\"联营企业\",\"type\":\"enterprise_type_second\",\"description\":\"联营企业\",\"sort\":6,\"createTime\":\"2021-04-25 16:33:12\",\"updateTime\":\"2021-04-25 16:33:12\",\"remarks\":\"联营企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4096,\"dictId\":359,\"value\":\"7\",\"label\":\"外商投资企业\",\"type\":\"enterprise_type_second\",\"description\":\"外商投资企业\",\"sort\":7,\"createTime\":\"2021-04-25 16:33:22\",\"updateTime\":\"2021-04-25 16:33:22\",\"remarks\":\"外商投资企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4097,\"dictId\":359,\"value\":\"8\",\"label\":\"个人独资企业\",\"type\":\"enterprise_type_second\",\"description\":\"个人独资企业\",\"sort\":8,\"createTime\":\"2021-04-25 16:33:30\",\"updateTime\":\"2021-04-25 16:33:30\",\"remarks\":\"个人独资企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4098,\"dictId\":359,\"value\":\"9\",\"label\":\"港、澳、台投资企业\",\"type\":\"enterprise_type_second\",\"description\":\"港、澳、台投资企业\",\"sort\":9,\"createTime\":\"2021-04-25 16:33:39\",\"updateTime\":\"2021-04-25 16:33:39\",\"remarks\":\"港、澳、台投资企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4099,\"dictId\":359,\"value\":\"10\",\"label\":\"股份合作企业\",\"type\":\"enterprise_type_second\",\"description\":\"股份合作企业\",\"sort\":10,\"createTime\":\"2021-04-25 16:33:49\",\"updateTime\":\"2021-04-25 16:33:49\",\"remarks\":\"股份合作企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]}]},\"matter_material_type\":{\"id\":394,\"type\":\"matter_material_type\",\"description\":\"材料种类\",\"createTime\":\"2021-02-03 17:20:24\",\"updateTime\":\"2021-02-03 17:20:24\",\"system\":\"0\",\"remarks\":\"材料种类\",\"delFlag\":\"0\",\"tenantId\":1,\"dictItemList\":[{\"id\":3972,\"dictId\":394,\"value\":\"2\",\"label\":\"文本\",\"type\":\"matter_material_type\",\"description\":\"文本\",\"sort\":2,\"createTime\":\"2021-02-03 17:20:49\",\"updateTime\":\"2021-03-09 22:20:03\",\"remarks\":\"文本\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3973,\"dictId\":394,\"value\":\"1\",\"label\":\"表格\",\"type\":\"matter_material_type\",\"description\":\"表格\",\"sort\":1,\"createTime\":\"2021-02-03 17:21:03\",\"updateTime\":\"2021-03-09 22:20:09\",\"remarks\":\"表格\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3974,\"dictId\":394,\"value\":\"3\",\"label\":\"证照\",\"type\":\"matter_material_type\",\"description\":\"证照\",\"sort\":3,\"createTime\":\"2021-02-03 17:21:18\",\"updateTime\":\"2021-02-03 17:21:18\",\"remarks\":\"证照\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":3975,\"dictId\":394,\"value\":\"4\",\"label\":\"其他\",\"type\":\"matter_material_type\",\"description\":\"其他\",\"sort\":4,\"createTime\":\"2021-02-03 17:21:29\",\"updateTime\":\"2021-02-03 17:21:29\",\"remarks\":\"其他\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]}]},\"object_scale\":{\"id\":367,\"type\":\"object_scale\",\"description\":\"企业规模\",\"createTime\":\"2020-10-23 19:20:58\",\"updateTime\":\"2020-10-23 19:20:58\",\"system\":\"0\",\"remarks\":\"企业规模\",\"delFlag\":\"0\",\"tenantId\":1,\"dictItemList\":[{\"id\":2192,\"dictId\":367,\"value\":\"1\",\"label\":\"大型企业\",\"type\":\"object_scale\",\"description\":\"大型企业\",\"sort\":1,\"createTime\":\"2020-10-23 19:21:30\",\"updateTime\":\"2021-01-14 10:54:13\",\"remarks\":\"大型企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":2193,\"dictId\":367,\"value\":\"2\",\"label\":\"中型企业\",\"type\":\"object_scale\",\"description\":\"中型企业\",\"sort\":2,\"createTime\":\"2020-10-23 19:21:47\",\"updateTime\":\"2021-01-14 10:54:23\",\"remarks\":\"中型企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":2194,\"dictId\":367,\"value\":\"3\",\"label\":\"小型企业\",\"type\":\"object_scale\",\"description\":\"小型企业\",\"sort\":3,\"createTime\":\"2020-10-23 19:21:59\",\"updateTime\":\"2021-01-14 10:54:32\",\"remarks\":\"小型企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":2195,\"dictId\":367,\"value\":\"4\",\"label\":\"微型企业\",\"type\":\"object_scale\",\"description\":\"微型企业\",\"sort\":4,\"createTime\":\"2020-10-23 19:22:13\",\"updateTime\":\"2021-01-14 10:54:41\",\"remarks\":\"微型企业\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]},{\"id\":4020,\"dictId\":367,\"value\":\"5\",\"label\":\"其他\",\"type\":\"object_scale\",\"description\":\"其他\",\"sort\":5,\"createTime\":\"2021-04-22 10:19:39\",\"updateTime\":\"2021-04-22 10:19:39\",\"remarks\":\"其他\",\"delFlag\":\"0\",\"tenantId\":0,\"parentId\":0,\"children\":[]}]}}");
		List<String> types = Func.toStrList(",", typeList);
		Map<String, Object> data = new HashMap<>();
		for (String type : types) {
			data.put(type, dictService.getDictByType(type));
		}
		return R.data(data);
	}

	@PostMapping("/webInterface/indexWeb/list")
	public R<List<SgaPolicyVO>> indexWebList() {
		//JSONArray data = JSON.parseArray("[{\"id\":3780,\"policyName\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局关于进一步做好援企稳岗促就业工作\",\"deptId\":218,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 11:27:58\",\"status\":\"5\",\"startTime\":\"2022-05-07 00:00:00\",\"endTime\":\"2022-12-31 00:00:00\",\"levelId\":\"420000\",\"levelName\":\"湖北省\",\"reason\":\"\",\"policyType\":\"4,5,7,8,23,18\",\"delFlag\":0,\"createTime\":\"2022-06-10 11:10:15\",\"updateTime\":\"2022-06-10 11:27:58\",\"createUserId\":1706,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"鄂人社发〔2022〕21 号\",\"athletsDate\":\"2022-05-07 00:00:00\",\"athletsLevelId\":\"2\",\"athletsOrgId\":\"\",\"athletsOrgName\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局\",\"viewCount\":49,\"athletsOrg\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局\"},{\"id\":3781,\"policyName\":\"湖北省人力资源社会保障厅关于落实人力资源服务企业失业保险稳岗返还政策有关问题的指导意见\",\"deptId\":218,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 11:27:46\",\"status\":\"6\",\"startTime\":\"2021-06-04 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420000\",\"levelName\":\"湖北省\",\"reason\":\"\",\"policyType\":\"4,5,8,23,22,18\",\"delFlag\":0,\"createTime\":\"2022-06-10 11:17:20\",\"updateTime\":\"2022-06-10 11:27:46\",\"createUserId\":1706,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"鄂人社函〔2021〕101号\",\"athletsDate\":\"2021-06-04 00:00:00\",\"athletsLevelId\":\"2\",\"athletsOrgId\":\"\",\"athletsOrgName\":\"湖北省人力资源社会保障厅\",\"declareType\":\"true\",\"viewCount\":13,\"athletsOrg\":\"湖北省人力资源社会保障厅\"},{\"id\":3782,\"policyName\":\"湖北省财政厅湖北省人力资源和社会保障厅关于湖北省创业担保贷款财政贴息资金管理办法\",\"deptId\":218,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 11:27:43\",\"status\":\"6\",\"startTime\":\"2018-03-27 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420000\",\"levelName\":\"湖北省\",\"reason\":\"\",\"policyType\":\"4,7,8,18,10,9,13\",\"delFlag\":0,\"createTime\":\"2022-06-10 11:22:43\",\"updateTime\":\"2022-06-10 11:27:43\",\"createUserId\":1706,\"athletsNum\":\"鄂财金规〔2018〕5号\",\"athletsDate\":\"2018-03-27 00:00:00\",\"athletsLevelId\":\"2\",\"athletsOrgId\":\"\",\"athletsOrgName\":\"湖北省财政厅湖北省人力资源和社会保障厅\",\"declareType\":\"true\",\"viewCount\":5,\"athletsOrg\":\"湖北省财政厅湖北省人力资源和社会保障厅\"}]");
		List<SgaPolicyVO> data = policyService.selectTop(3);
		return R.data(data);
	}

	@PostMapping("/webInterface/indexWeb/hot")
	public R<List<SgaHotPolicyVO>> indexWebHot() {
//		JSONArray data = JSON.parseArray("[{\"id\":3780,\"name\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局关于进一步做好援企稳岗促就业工作\",\"type\":\"1\",\"viewCount\":49},{\"id\":3768,\"name\":\"襄州区委办公室、襄州区政府办公室印发《关于支持中小企业共渡难关加快发展的暂行办法》的通知\",\"type\":\"1\",\"viewCount\":21},{\"id\":3767,\"name\":\"湖北省人民政府办公厅关于印发支持中小微企业降成本若干措施的通知\",\"type\":\"1\",\"viewCount\":16},{\"id\":3781,\"name\":\"湖北省人力资源社会保障厅关于落实人力资源服务企业失业保险稳岗返还政策有关问题的指导意见\",\"type\":\"1\",\"viewCount\":13},{\"id\":3779,\"name\":\"中共襄阳市襄州区委襄阳市襄州区人民政府印发《关于加强科技创新引领高质量发展的实施方案》的通知\",\"type\":\"1\",\"viewCount\":8},{\"id\":3783,\"name\":\"湖北省财政厅湖北省人力资源和社会保障厅关于湖北省就业补助资金管理办法\",\"type\":\"1\",\"viewCount\":6},{\"id\":3782,\"name\":\"湖北省财政厅湖北省人力资源和社会保障厅关于湖北省创业担保贷款财政贴息资金管理办法\",\"type\":\"1\",\"viewCount\":5},{\"id\":3772,\"name\":\"中共南漳县委办公室南漳县人民政府办公室关于加强科技创新引领高质量发展的若干意见\",\"type\":\"1\",\"viewCount\":5},{\"id\":3774,\"name\":\"南漳县人民政府办公室关于南漳县鼓励和扶持工业企业技术改造项目奖励办法\",\"type\":\"1\",\"viewCount\":4}]");
		List<SgaHotPolicyVO> data = policyService.selectTopHot(9);
		return R.data(data);
	}

	@GetMapping("/webInterface/addPolicyViewCount/{id}")
	public R<Object> addPolicyViewCount(@PathVariable(name = "id") Long id) {
		policyService.increaseViewCount(id);
		return R.status(true);
	}

	@GetMapping("/policyLibrary/api/page")
	public R<List<PolicyPushVO>> policyLibraryPge(String enterpriseCode) throws Exception{
//		Object data = JSONUtil.parseObj("{\"records\":[{\"id\":209,\"policyName\":\"关于加强科技创新引领高质量发展的实施意见\",\"publishDeptId\":\"3\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:24\",\"status\":\"6\",\"startTime\":\"2020-08-05 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5,9,14,18\",\"delFlag\":0,\"createTime\":\"2021-01-22 00:22:42\",\"updateTime\":\"2021-10-28 15:14:24\",\"createUserId\":783,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄发〔2020〕12号\",\"athletsDate\":\"2020-08-02 00:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"405\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":42,\"athletsOrg\":\"中共襄阳市委办公室\"},{\"id\":368,\"policyName\":\"襄阳市人民政府关于加快多层次资本市场建设发展的若干意见\",\"publishDeptId\":\"233\",\"deptId\":194,\"publishStatus\":\"1\",\"publishTime\":\"2021-05-26 10:47:40\",\"status\":\"6\",\"startTime\":\"2014-02-18 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5,14\",\"delFlag\":0,\"createTime\":\"2021-03-06 08:36:48\",\"updateTime\":\"2021-05-26 10:47:40\",\"createUserId\":806,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,9,10,11,12,13,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄政发〔2014〕6号\",\"athletsDate\":\"2014-02-18 16:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":19,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3621,\"policyName\":\"襄阳市人民政府关于加快发展养老服务业的实施意见\",\"deptId\":188,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-23 11:31:36\",\"status\":\"6\",\"startTime\":\"2018-01-01 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420602\",\"levelName\":\"襄城区\",\"reason\":\"\",\"policyType\":\"5\",\"delFlag\":0,\"createTime\":\"2021-05-24 18:17:41\",\"updateTime\":\"2021-10-23 11:31:36\",\"createUserId\":1554,\"athletsNum\":\"襄政发〔2017〕24号\",\"athletsDate\":\"2017-12-18 00:00:00\",\"athletsLevelId\":\"4\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":18,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3622,\"policyName\":\"关于进一步支持工业企业增强核心竞争力提升产业链供应链水平的若干措施\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:19\",\"status\":\"6\",\"startTime\":\"2020-07-31 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5\",\"delFlag\":0,\"createTime\":\"2021-05-28 17:30:50\",\"updateTime\":\"2021-10-28 15:14:19\",\"createUserId\":1587,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄办发〔2020〕7号\",\"athletsDate\":\"2020-07-31 16:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"405,404\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":55,\"athletsOrg\":\"中共襄阳市委办公室,襄阳市人民政府办公室\"},{\"id\":3624,\"policyName\":\"襄阳市人民政府关于进一步加快服务业发展的若干意见\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:22\",\"status\":\"6\",\"startTime\":\"2018-09-19 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5\",\"delFlag\":0,\"createTime\":\"2021-05-25 17:03:33\",\"updateTime\":\"2021-10-28 15:14:22\",\"createUserId\":1587,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄政发〔2018〕19号\",\"athletsDate\":\"2018-09-09 00:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":13,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3625,\"policyName\":\"襄阳市人民政府关于进一步推进企业上市工作的意见\",\"deptId\":194,\"publishStatus\":\"1\",\"publishTime\":\"2021-05-28 01:18:19\",\"status\":\"5\",\"startTime\":\"2018-06-01 00:00:00\",\"endTime\":\"2023-05-31 00:00:00\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"9,5,14\",\"delFlag\":0,\"createTime\":\"2021-05-28 01:17:24\",\"updateTime\":\"2021-05-28 01:18:19\",\"createUserId\":1590,\"serviceObject\":\"\",\"enterpriseSpecial\":\"\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄政发〔2019〕4号\",\"athletsDate\":\"2019-03-06 08:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"viewCount\":21,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3631,\"policyName\":\"襄阳市人民政府关于加强专利工作加快推进知识产权强市建设的意见\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:17\",\"status\":\"5\",\"startTime\":\"2021-04-25 00:00:00\",\"endTime\":\"2025-12-31 00:00:00\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"16\",\"delFlag\":0,\"createTime\":\"2021-06-01 19:29:17\",\"updateTime\":\"2021-10-28 15:14:17\",\"createUserId\":1587,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄政发〔2021〕6号\",\"athletsDate\":\"2021-04-25 00:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"viewCount\":44,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3638,\"policyName\":\"中共襄阳市委襄阳市人民政府关于加快工业经济发展实现倍增目标的意见\",\"deptId\":187,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-23 10:33:00\",\"status\":\"5\",\"startTime\":\"2018-01-01 00:00:00\",\"endTime\":\"2021-12-30 00:00:00\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5,14,15,18\",\"delFlag\":0,\"createTime\":\"2021-06-12 15:21:44\",\"updateTime\":\"2021-10-23 10:33:00\",\"createUserId\":1643,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄发﹝2017﹞15号\",\"athletsDate\":\"2017-07-10 08:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"232,233\",\"athletsOrgName\":\"\",\"declareType\":\"false\",\"viewCount\":34,\"athletsOrg\":\"中共襄阳市委员会,襄阳市人民政府\"},{\"id\":3639,\"policyName\":\"市委办公室市政府办公室印发《关于支持农业招商引资的实施意见》的通知\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:15\",\"status\":\"6\",\"startTime\":\"2018-09-21 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5,10,15,14,18\",\"delFlag\":0,\"createTime\":\"2021-06-30 16:13:54\",\"updateTime\":\"2021-10-28 15:14:15\",\"createUserId\":1587,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄办发电〔2018〕45号\",\"athletsDate\":\"2018-10-17 08:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"405,404\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":92,\"athletsOrg\":\"中共襄阳市委办公室,襄阳市人民政府办公室\"},{\"id\":3640,\"policyName\":\"老河口市人民政府关于印发加快建设千亿工业强市二十条措施的通知\",\"deptId\":298,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-18 09:23:37\",\"status\":\"5\",\"startTime\":\"2020-01-13 00:00:00\",\"endTime\":\"2023-01-13 00:00:00\",\"levelId\":\"420682\",\"levelName\":\"老河口市\",\"reason\":\"\",\"policyType\":\"5,11,14,15,7,9,10,6,18\",\"delFlag\":0,\"createTime\":\"2021-10-12 09:35:09\",\"updateTime\":\"2021-10-18 09:23:37\",\"createUserId\":1607,\"athletsNum\":\"河政发〔2020〕3号\",\"athletsDate\":\"2020-01-13 08:00:00\",\"athletsLevelId\":\"4\",\"athletsOrgId\":\"400\",\"athletsOrgName\":\"\",\"viewCount\":21,\"athletsOrg\":\"null\"}],\"total\":49,\"size\":10,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":5}");
//		IPage<SgaPolicyVO> data = policyService.selectPushPage(Condition.getPage(query), isPrecisePush, enterpriseSpecial);
		return R.data(policyDrawService.selectPushPolicyPage(enterpriseCode));
	}

	@GetMapping("/policyDrawLibrary/api/page")
	public R<List<SgaPolicyDrawPushVo>> policyDrawLibraryPge(String enterpriseCode) throws Exception{
//		Object data = JSONUtil.parseObj("{\"records\":[{\"id\":209,\"policyName\":\"关于加强科技创新引领高质量发展的实施意见\",\"publishDeptId\":\"3\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:24\",\"status\":\"6\",\"startTime\":\"2020-08-05 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5,9,14,18\",\"delFlag\":0,\"createTime\":\"2021-01-22 00:22:42\",\"updateTime\":\"2021-10-28 15:14:24\",\"createUserId\":783,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄发〔2020〕12号\",\"athletsDate\":\"2020-08-02 00:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"405\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":42,\"athletsOrg\":\"中共襄阳市委办公室\"},{\"id\":368,\"policyName\":\"襄阳市人民政府关于加快多层次资本市场建设发展的若干意见\",\"publishDeptId\":\"233\",\"deptId\":194,\"publishStatus\":\"1\",\"publishTime\":\"2021-05-26 10:47:40\",\"status\":\"6\",\"startTime\":\"2014-02-18 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5,14\",\"delFlag\":0,\"createTime\":\"2021-03-06 08:36:48\",\"updateTime\":\"2021-05-26 10:47:40\",\"createUserId\":806,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,9,10,11,12,13,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄政发〔2014〕6号\",\"athletsDate\":\"2014-02-18 16:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":19,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3621,\"policyName\":\"襄阳市人民政府关于加快发展养老服务业的实施意见\",\"deptId\":188,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-23 11:31:36\",\"status\":\"6\",\"startTime\":\"2018-01-01 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420602\",\"levelName\":\"襄城区\",\"reason\":\"\",\"policyType\":\"5\",\"delFlag\":0,\"createTime\":\"2021-05-24 18:17:41\",\"updateTime\":\"2021-10-23 11:31:36\",\"createUserId\":1554,\"athletsNum\":\"襄政发〔2017〕24号\",\"athletsDate\":\"2017-12-18 00:00:00\",\"athletsLevelId\":\"4\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":18,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3622,\"policyName\":\"关于进一步支持工业企业增强核心竞争力提升产业链供应链水平的若干措施\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:19\",\"status\":\"6\",\"startTime\":\"2020-07-31 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5\",\"delFlag\":0,\"createTime\":\"2021-05-28 17:30:50\",\"updateTime\":\"2021-10-28 15:14:19\",\"createUserId\":1587,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄办发〔2020〕7号\",\"athletsDate\":\"2020-07-31 16:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"405,404\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":55,\"athletsOrg\":\"中共襄阳市委办公室,襄阳市人民政府办公室\"},{\"id\":3624,\"policyName\":\"襄阳市人民政府关于进一步加快服务业发展的若干意见\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:22\",\"status\":\"6\",\"startTime\":\"2018-09-19 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5\",\"delFlag\":0,\"createTime\":\"2021-05-25 17:03:33\",\"updateTime\":\"2021-10-28 15:14:22\",\"createUserId\":1587,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄政发〔2018〕19号\",\"athletsDate\":\"2018-09-09 00:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":13,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3625,\"policyName\":\"襄阳市人民政府关于进一步推进企业上市工作的意见\",\"deptId\":194,\"publishStatus\":\"1\",\"publishTime\":\"2021-05-28 01:18:19\",\"status\":\"5\",\"startTime\":\"2018-06-01 00:00:00\",\"endTime\":\"2023-05-31 00:00:00\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"9,5,14\",\"delFlag\":0,\"createTime\":\"2021-05-28 01:17:24\",\"updateTime\":\"2021-05-28 01:18:19\",\"createUserId\":1590,\"serviceObject\":\"\",\"enterpriseSpecial\":\"\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄政发〔2019〕4号\",\"athletsDate\":\"2019-03-06 08:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"viewCount\":21,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3631,\"policyName\":\"襄阳市人民政府关于加强专利工作加快推进知识产权强市建设的意见\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:17\",\"status\":\"5\",\"startTime\":\"2021-04-25 00:00:00\",\"endTime\":\"2025-12-31 00:00:00\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"16\",\"delFlag\":0,\"createTime\":\"2021-06-01 19:29:17\",\"updateTime\":\"2021-10-28 15:14:17\",\"createUserId\":1587,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄政发〔2021〕6号\",\"athletsDate\":\"2021-04-25 00:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"233\",\"athletsOrgName\":\"\",\"viewCount\":44,\"athletsOrg\":\"襄阳市人民政府\"},{\"id\":3638,\"policyName\":\"中共襄阳市委襄阳市人民政府关于加快工业经济发展实现倍增目标的意见\",\"deptId\":187,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-23 10:33:00\",\"status\":\"5\",\"startTime\":\"2018-01-01 00:00:00\",\"endTime\":\"2021-12-30 00:00:00\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5,14,15,18\",\"delFlag\":0,\"createTime\":\"2021-06-12 15:21:44\",\"updateTime\":\"2021-10-23 10:33:00\",\"createUserId\":1643,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄发﹝2017﹞15号\",\"athletsDate\":\"2017-07-10 08:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"232,233\",\"athletsOrgName\":\"\",\"declareType\":\"false\",\"viewCount\":34,\"athletsOrg\":\"中共襄阳市委员会,襄阳市人民政府\"},{\"id\":3639,\"policyName\":\"市委办公室市政府办公室印发《关于支持农业招商引资的实施意见》的通知\",\"deptId\":25,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-28 15:14:15\",\"status\":\"6\",\"startTime\":\"2018-09-21 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420600\",\"levelName\":\"襄阳市\",\"reason\":\"\",\"policyType\":\"5,10,15,14,18\",\"delFlag\":0,\"createTime\":\"2021-06-30 16:13:54\",\"updateTime\":\"2021-10-28 15:14:15\",\"createUserId\":1587,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"襄办发电〔2018〕45号\",\"athletsDate\":\"2018-10-17 08:00:00\",\"athletsLevelId\":\"3\",\"athletsOrgId\":\"405,404\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":92,\"athletsOrg\":\"中共襄阳市委办公室,襄阳市人民政府办公室\"},{\"id\":3640,\"policyName\":\"老河口市人民政府关于印发加快建设千亿工业强市二十条措施的通知\",\"deptId\":298,\"publishStatus\":\"1\",\"publishTime\":\"2021-10-18 09:23:37\",\"status\":\"5\",\"startTime\":\"2020-01-13 00:00:00\",\"endTime\":\"2023-01-13 00:00:00\",\"levelId\":\"420682\",\"levelName\":\"老河口市\",\"reason\":\"\",\"policyType\":\"5,11,14,15,7,9,10,6,18\",\"delFlag\":0,\"createTime\":\"2021-10-12 09:35:09\",\"updateTime\":\"2021-10-18 09:23:37\",\"createUserId\":1607,\"athletsNum\":\"河政发〔2020〕3号\",\"athletsDate\":\"2020-01-13 08:00:00\",\"athletsLevelId\":\"4\",\"athletsOrgId\":\"400\",\"athletsOrgName\":\"\",\"viewCount\":21,\"athletsOrg\":\"null\"}],\"total\":49,\"size\":10,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":5}");
//		IPage<SgaPolicyDrawVO> data = policyDrawService.selectPushPage(Condition.getPage(query), isPrecisePush, enterpriseSpecial);
		return R.data(policyDrawService.selectPushPage(enterpriseCode));
	}

	// 定义一个计算两个集合Jaccard相似度的方法
	public static double calculateJaccardSimilarity(Set<String> set1, Set<String> set2) {
		Set<String> intersection = new HashSet<>(set1);
		intersection.retainAll(set2);  // 计算交集
		Set<String> union = new HashSet<>(set1);
		union.addAll(set2);            // 计算并集
		return (double) intersection.size() / union.size();
	}

	@GetMapping("/policyLibrary/api/{id}")
	public R<SgaPolicyVO> policyLibrary(@PathVariable(name = "id") Long id) {
//		Object data = JSON.parseObject("{\"id\":3780,\"policyName\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局关于进一步做好援企稳岗促就业工作\",\"deptId\":218,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 11:27:58\",\"status\":\"5\",\"startTime\":\"2022-05-07 00:00:00\",\"endTime\":\"2022-12-31 00:00:00\",\"levelId\":\"420000\",\"levelName\":\"湖北省\",\"reason\":\"\",\"policyType\":\"4,5,7,8,23,18\",\"delFlag\":0,\"createTime\":\"2022-06-10 11:10:15\",\"updateTime\":\"2022-06-10 11:27:58\",\"createUserId\":1706,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"鄂人社发〔2022〕21 号\",\"athletsDate\":\"2022-05-07 00:00:00\",\"athletsLevelId\":\"2\",\"athletsOrgId\":\"\",\"athletsOrgName\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局\",\"viewCount\":66,\"athletsOrg\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局\",\"detailId\":3950,\"policyTermsContent\":\"各市、州、直管市、神农架林区人民政府： 为深入贯彻党中央、国务院决策部署和省委、省政府工作 要求，统筹疫情防控和经济社会发展，扎实做好稳就业工作， 全面落实保居民就业任务，进一步加大援企稳岗促就业力度， 经省人民政府同意，现将有关事项通知如下： 一、延续阶段性降低社会保险费率政策。延续实施阶段性 降低失业保险、工伤保险费率政策 1 年，执行期限至 2023 年 4 月 30 日。\\n二、实施阶段性缓缴社会保险费政策。对餐饮、零售、旅 游、民航、公路水路铁路运输企业阶段性实施缓缴养老保险费、 失业保险费、工伤保险费政策，其中，养老保险费缓缴期限 3 个月，失业保险和工伤保险费缓缴期限不超过 1 年，缓缴期间 免收滞纳金。以个人身份参加企业职工基本养老保险的个体工 商户和各类灵活就业人员，2022 年缴纳养老保险费有困难的， 可自愿暂缓缴费至 2023 年底前补缴。 三、继续实施失业保险稳岗返还政策。参保企业上年度未 裁员或裁员率不高于 5.5%，30 人（含）以下的参保企业裁员 率不高于参保职工总数 20%的，可以申请失业保险稳岗返还。 大型企业按不超过企业及其职工上年度实际缴纳失业保险费 的 30%返还，餐饮、零售、旅游、民航、公路水路铁路运输 企业及中小微企业按 90%返还。社会团体、基金会、社会服 务机构、律师事务所、会计师事务所、以单位形式参保的个体 经济组织参照实施。实施上述稳岗返还政策的统筹地区，上年 度失业保险基金滚存结余备付期限应在 1 年以上。上述政策执 行期限至 2022 年 12 月 31 日。大力推广稳岗返还“免申即享”， 对没有对公账户的小微企业，可将资金直接返还至当地税务部 门提供的其缴纳社会保险费的账户。 四、继续实施失业保险保障扩围政策。对领取失业保险金 期满仍未就业的失业人员、不符合领取失业保险金条件的参保 — 2 —\\n失业人员，发放失业补助金。保障范围为 2022 年 1 月 1 日至 12 月 31 日期间新发生的参保失业人员。参保 1 年及以上人员 的失业补助金发放标准不超过每人每月 500 元，参保不足 1 年人员的发放标准不超过每人每月 300 元。对符合条件的人 员，从申领的次月按月发放，发放不超过 6 个月。上述政策执 行期限至 2022 年 12 月 31 日。2021 年底失业保险基金滚存结 余备付期限不足 2 年的地区，可结合本地区就业形势和基金支 付能力统筹研究确定，确保失业保险基金可持续运行。大力开 展失业保险待遇“畅通领、安全办”。健全基金审核、公示、拨 付等监督机制，利用信息化手段验证资格条件、信息比对核查， 严防欺诈、冒领、骗取风险。 五、拓宽技能提升补贴受益范围。领取失业保险金人员取 得职业资格证书或职业技能等级证书的，可按照初级（五级） 不超过 1000 元、中级（四级）不超过 1500 元、高级（三级） 不超过 2000 元的标准申请技能提升补贴。参保职工取得职业 资格证书或职业技能等级证书的，可按规定申请技能提升补 贴。技能提升补贴申领条件，继续放宽至企业在职职工参加失 业保险 1 年以上。每人每年享受补贴次数不超过 3 次，同一职 业同一等级不可重复享受，且不得与就业创业培训补贴重复享 受。上述政策执行期限至 2022 年 12 月 31 日。 六、大力支持职业技能培训。上年度失业保险基金滚存结 — 3 —\\n余备付期限在 2 年以上，并且职业技能提升行动专账资金不足 的统筹地区，在各项保生活稳岗位政策落实到位的基础上，留 足 2 年的备付资金后，可提取累计结余 4%左右的失业保险基 金至职业技能提升行动专账资金中，统筹用于职业技能培训。 上述政策的提取期限至 2022 年 12 月 31 日。对领取失业保险 金期间接受职业培训的失业人员，按规定发放职业培训补贴。 七、发放一次性留工培训补助。2022 年 1 月 1 日至 12 月 31 日，累计出现 1 个（含）以上中高风险疫情地区的市（州）、 县（市、区），可对因新冠肺炎疫情严重影响暂无法正常生产 经营的中小微企业，按每名参保职工不超过 500 元的标准发放 一次性留工培训补助，支持企业组织职工以工作代替培训。社 会团体、基金会、社会服务机构、律师事务所、会计师事务所、 以单位形式参保的个体经济组织参照实施。社会保险经办机构 可通过大数据比对，按照该企业参加失业保险人数直接发放补 助，无需企业提供培训计划、培训合格证书、职工花名册以及 生产经营情况证明。上述补助同一企业只能享受一次。符合条 件的，还可以享受失业保险稳岗返还。实施上述政策的统筹地 区，失业保险基金应已计提职业技能提升行动专账资金，并留 足 2 年的备付资金。此项政策执行期限至 2022 年 12 月 31 日。 八、常态化开展保用工促就业行动。对接重点企业、重大 项目用工需求，建立用工保障清单并动态更新，完善用工服务 — 4 —\\n专员“一对一”联系服务机制。组织各类人力资源机构、产业 园、行业协会服务对接重点企业、重大项目，精准保障用工需 求。深化劳务协作机制，建立地区间劳务协作联盟，通过签订 劳务协作协议、举办劳务对接活动等形式，“点对点”引进劳 动力。探索建立用工余缺调剂机制，帮助企业搭建共享用工信 息对接平台，帮助企业就近就地调剂本地用工。 九、着力促进高校毕业生就业创业。深入推进“才聚荆楚” 工程，开展“公共就业服务进校园”活动，组织政策宣传、招 聘服务、就业指导、创业服务、职业培训、困难帮扶等“六进” 校园，汇总发布高校毕业生就业创业政策清单，归集发布重点 企业、重大项目和“专精特新”企业、公共部门岗位等岗位信 息清单，开展“百日千万网络招聘专项行动”、民营企业招聘 月等系列活动。募集就业见习岗位不少于 3 万个。加强对零就 业家庭、低收入家庭、残疾等毕业生就业帮扶。 十、鼓励政府购买就业公共服务。鼓励通过政府购买服务 扩大就业服务供给，为劳动者提供更有针对性的职业介绍、职 业指导等就业服务，为失业人员、高校毕业生、退役军人、农 民工、残疾人、零就业家庭成员等群体开展职业技能培训等就 业帮扶。各地区要加强组织领导、周密部署、广泛宣传，省有关部 门要同向发力、密切协同、优化服务，抓紧抓实抓细各项惠企 — 5 —\\n— 6 — 利民政策落地见效，更好回应人民群众和市场主体关切，为稳 就业保民生提供坚实支撑，确保全省就业大局持续稳定。\",\"freeApplicationList\":[],\"fileAssociationList\":[],\"matMatterList\":[{\"id\":2975,\"name\":\"襄州区失业保险稳岗返还\",\"isApply\":\"1\",\"isEntList\":\"\",\"specialClassify\":\"\",\"themeClassify\":\"\",\"serviceObject\":\"\",\"telephone\":\"0710-2699106\",\"status\":\"5\",\"declareStart\":\"2022-03-01 00:00:00\",\"declareEnd\":\"2022-12-31 00:00:00\",\"declareType\":\"false\",\"completionTime\":30,\"industryType\":\"A,C,D,F,G,H,K,R,J,I,L,M,E,N,O,P,Q,B,S,T\",\"industryTypeName\":\"\",\"suitLevel\":\"420607\",\"suitLevelName\":\"襄州区\",\"acceptCondition\":\"参保企业上年度未\\n裁员或裁员率不高于5.5%,30人（含）以下的参保企业裁员\\n率不高于参保职工总数20%的，可以申请失业保险稳岗返还。\\n大型企业按不超过企业及其职工上年度实际缴纳失业保险费\\n的30%返还，餐饮、零售、旅游、民航、公路水路铁路运输\\n企业及中小微企业按90%返还。社会团体、基金会、社会服\\n务机构、律师事务所、会计师事务所、以单位形式参保的个体\\n经济组织参照实施。实施上述稳岗返还政策的统筹地区，上年\\n度失业保险基金滚存结余备付期限应在1年以上。上述政策执\\n行期限至2022年12月31日。大力推广稳岗返还“免申即享”，\\n对没有对公账户的小微企业，可将资金直接返还至当地税务部\\n门提供的其缴纳社会保险费的账户。\",\"peopleIndustryType\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"peopleSuitLevel\":\"\",\"enterpriseSubjectType\":\"\",\"enterpriseScale\":\"1,2,3,4,5\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"matterType\":\"1\",\"enterpriseNature\":\"1,2,3,4,5,6,7,8,9,10\",\"subsidyStandards\":\"对符合条件的企业：其中大型企业按不超过企业及其职工上年度实际缴纳失业保险费的30%返还（第二、三批调整为50%返还），中小微企业按不超过90%返还。\\n\",\"createUser\":\"xzqrsj\",\"createUserDept\":235,\"createTime\":\"2021-11-07 14:55:12\",\"modifiedUser\":\"xzqrsj\",\"modifiedUserDept\":235,\"modifiedTime\":\"2022-07-21 09:50:04\",\"delFlag\":\"0\",\"subsidyCostMin\":100.0,\"subsidyCostMax\":1500000.0,\"sourceBatch\":\"\",\"sourceEntry\":\"\"},{\"id\":3175,\"name\":\"普惠性失业保险稳岗返还（非人力资源企业申报）\",\"isApply\":\"1\",\"specialClassify\":\"\",\"themeClassify\":\"\",\"serviceObject\":\"\",\"telephone\":\"0710-5244513\",\"status\":\"5\",\"declareStart\":\"2022-05-07 00:00:00\",\"declareEnd\":\"2022-12-31 00:00:00\",\"completionTime\":1,\"industryType\":\"O,I,M,S\",\"industryTypeName\":\"\",\"suitLevel\":\"420624\",\"suitLevelName\":\"南漳县\",\"acceptCondition\":\"参保企业上年度未裁员或裁员率不高于5.5%，30人(含)以下的参保企业裁员率不高于参保职工总数20%的，可以申请失业保险稳岗返还。\",\"peopleIndustryType\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"peopleSuitLevel\":\"\",\"enterpriseSubjectType\":\"\",\"enterpriseScale\":\"4,3\",\"enterpriseSpecial\":\"3,4,5,6,24\",\"enterpriseSpecialName\":\"\",\"matterType\":\"1\",\"enterpriseNature\":\"2,4,5,10,8,7\",\"subsidyStandards\":\"大型企业按不超过企业及其职工上年度实际缴纳失业保险费的30%返还，餐饮、零售、旅游、民航、公路水路铁路运输企业及中小微企业按90%返还。社会团体、基金会、社会服务机构、律师事务所、会计师事务所、以单位形式参保的个体经济组织参照实施。\",\"createUser\":\"nzxrsj\",\"createUserDept\":218,\"createTime\":\"2022-06-10 17:02:27\",\"modifiedUser\":\"nzxrsj\",\"modifiedUserDept\":218,\"modifiedTime\":\"2022-06-10 17:27:27\",\"delFlag\":\"0\",\"subsidyCostMin\":100.0,\"subsidyCostMax\":500000.0},{\"id\":3176,\"name\":\"普惠性失业保险稳岗返还（人力资源企业申报）\",\"isApply\":\"0\",\"specialClassify\":\"\",\"themeClassify\":\"\",\"serviceObject\":\"\",\"telephone\":\"0710-5244513\",\"status\":\"5\",\"declareStart\":\"2022-05-07 00:00:00\",\"declareEnd\":\"2022-12-31 00:00:00\",\"completionTime\":1,\"industryType\":\"I,M,S,J\",\"industryTypeName\":\"\",\"suitLevel\":\"420624\",\"suitLevelName\":\"南漳县\",\"acceptCondition\":\"参保企业上年度未裁员或裁员率不高于5.5%，30人(含)以下的参保企业裁员率不高于参保职工总数20%的，可以申请失业保险稳岗返还。\",\"peopleIndustryType\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"peopleSuitLevel\":\"\",\"enterpriseSubjectType\":\"\",\"enterpriseScale\":\"3,4\",\"enterpriseSpecial\":\"3,4,5,6,16\",\"enterpriseSpecialName\":\"\",\"matterType\":\"1\",\"enterpriseNature\":\"2,5,4,7,10\",\"subsidyStandards\":\"大型企业按不超过企业及其职工上年度实际缴纳失业保险费的30%返还，餐饮、零售、旅游、民航、公路水路铁路运输企业及中小微企业按90%返还。社会团体、基金会、社会服务机构、律师事务所、会计师事务所、以单位形式参保的个体经济组织参照实施。\",\"createUser\":\"nzxrsj\",\"createUserDept\":218,\"createTime\":\"2022-06-10 17:07:45\",\"modifiedUser\":\"nzxrsj\",\"modifiedUserDept\":218,\"modifiedTime\":\"2022-06-10 17:27:23\",\"delFlag\":\"0\",\"subsidyCostMin\":100.0,\"subsidyCostMax\":500000.0}],\"matMatterVoList\":[{\"id\":2975,\"name\":\"襄州区失业保险稳岗返还\",\"isApply\":\"1\",\"isEntList\":\"\",\"specialClassify\":\"\",\"themeClassify\":\"\",\"serviceObject\":\"\",\"telephone\":\"0710-2699106\",\"status\":\"5\",\"declareStart\":\"2022-03-01 00:00:00\",\"declareEnd\":\"2022-12-31 00:00:00\",\"declareType\":\"false\",\"completionTime\":30,\"industryType\":\"A,C,D,F,G,H,K,R,J,I,L,M,E,N,O,P,Q,B,S,T\",\"industryTypeName\":\"\",\"suitLevel\":\"420607\",\"suitLevelName\":\"襄州区\",\"acceptCondition\":\"参保企业上年度未\\n裁员或裁员率不高于5.5%,30人（含）以下的参保企业裁员\\n率不高于参保职工总数20%的，可以申请失业保险稳岗返还。\\n大型企业按不超过企业及其职工上年度实际缴纳失业保险费\\n的30%返还，餐饮、零售、旅游、民航、公路水路铁路运输\\n企业及中小微企业按90%返还。社会团体、基金会、社会服\\n务机构、律师事务所、会计师事务所、以单位形式参保的个体\\n经济组织参照实施。实施上述稳岗返还政策的统筹地区，上年\\n度失业保险基金滚存结余备付期限应在1年以上。上述政策执\\n行期限至2022年12月31日。大力推广稳岗返还“免申即享”，\\n对没有对公账户的小微企业，可将资金直接返还至当地税务部\\n门提供的其缴纳社会保险费的账户。\",\"peopleIndustryType\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"peopleSuitLevel\":\"\",\"enterpriseSubjectType\":\"\",\"enterpriseScale\":\"1,2,3,4,5\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"matterType\":\"1\",\"enterpriseNature\":\"1,2,3,4,5,6,7,8,9,10\",\"subsidyStandards\":\"对符合条件的企业：其中大型企业按不超过企业及其职工上年度实际缴纳失业保险费的30%返还（第二、三批调整为50%返还），中小微企业按不超过90%返还。\\n\",\"createUser\":\"xzqrsj\",\"createUserDept\":235,\"createTime\":\"2021-11-07 14:55:12\",\"modifiedUser\":\"xzqrsj\",\"modifiedUserDept\":235,\"modifiedTime\":\"2022-07-21 09:50:04\",\"delFlag\":\"0\",\"subsidyCostMin\":100.0,\"subsidyCostMax\":1500000.0,\"sourceBatch\":\"\",\"sourceEntry\":\"\",\"createUserDeptName\":\"襄州区人社局\"},{\"id\":3175,\"name\":\"普惠性失业保险稳岗返还（非人力资源企业申报）\",\"isApply\":\"1\",\"specialClassify\":\"\",\"themeClassify\":\"\",\"serviceObject\":\"\",\"telephone\":\"0710-5244513\",\"status\":\"5\",\"declareStart\":\"2022-05-07 00:00:00\",\"declareEnd\":\"2022-12-31 00:00:00\",\"completionTime\":1,\"industryType\":\"O,I,M,S\",\"industryTypeName\":\"\",\"suitLevel\":\"420624\",\"suitLevelName\":\"南漳县\",\"acceptCondition\":\"参保企业上年度未裁员或裁员率不高于5.5%，30人(含)以下的参保企业裁员率不高于参保职工总数20%的，可以申请失业保险稳岗返还。\",\"peopleIndustryType\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"peopleSuitLevel\":\"\",\"enterpriseSubjectType\":\"\",\"enterpriseScale\":\"4,3\",\"enterpriseSpecial\":\"3,4,5,6,24\",\"enterpriseSpecialName\":\"\",\"matterType\":\"1\",\"enterpriseNature\":\"2,4,5,10,8,7\",\"subsidyStandards\":\"大型企业按不超过企业及其职工上年度实际缴纳失业保险费的30%返还，餐饮、零售、旅游、民航、公路水路铁路运输企业及中小微企业按90%返还。社会团体、基金会、社会服务机构、律师事务所、会计师事务所、以单位形式参保的个体经济组织参照实施。\",\"createUser\":\"nzxrsj\",\"createUserDept\":218,\"createTime\":\"2022-06-10 17:02:27\",\"modifiedUser\":\"nzxrsj\",\"modifiedUserDept\":218,\"modifiedTime\":\"2022-06-10 17:27:27\",\"delFlag\":\"0\",\"subsidyCostMin\":100.0,\"subsidyCostMax\":500000.0,\"createUserDeptName\":\"南漳县人社局\"},{\"id\":3176,\"name\":\"普惠性失业保险稳岗返还（人力资源企业申报）\",\"isApply\":\"0\",\"specialClassify\":\"\",\"themeClassify\":\"\",\"serviceObject\":\"\",\"telephone\":\"0710-5244513\",\"status\":\"5\",\"declareStart\":\"2022-05-07 00:00:00\",\"declareEnd\":\"2022-12-31 00:00:00\",\"completionTime\":1,\"industryType\":\"I,M,S,J\",\"industryTypeName\":\"\",\"suitLevel\":\"420624\",\"suitLevelName\":\"南漳县\",\"acceptCondition\":\"参保企业上年度未裁员或裁员率不高于5.5%，30人(含)以下的参保企业裁员率不高于参保职工总数20%的，可以申请失业保险稳岗返还。\",\"peopleIndustryType\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"peopleSuitLevel\":\"\",\"enterpriseSubjectType\":\"\",\"enterpriseScale\":\"3,4\",\"enterpriseSpecial\":\"3,4,5,6,16\",\"enterpriseSpecialName\":\"\",\"matterType\":\"1\",\"enterpriseNature\":\"2,5,4,7,10\",\"subsidyStandards\":\"大型企业按不超过企业及其职工上年度实际缴纳失业保险费的30%返还，餐饮、零售、旅游、民航、公路水路铁路运输企业及中小微企业按90%返还。社会团体、基金会、社会服务机构、律师事务所、会计师事务所、以单位形式参保的个体经济组织参照实施。\",\"createUser\":\"nzxrsj\",\"createUserDept\":218,\"createTime\":\"2022-06-10 17:07:45\",\"modifiedUser\":\"nzxrsj\",\"modifiedUserDept\":218,\"modifiedTime\":\"2022-06-10 17:27:23\",\"delFlag\":\"0\",\"subsidyCostMin\":100.0,\"subsidyCostMax\":500000.0,\"createUserDeptName\":\"南漳县人社局\"}],\"categoryTypeList\":[],\"personalCategoryTypeList\":[],\"subjectTypeList\":[],\"policyObjectList\":[],\"lifeCycleTypeList\":[],\"enterpriseFeaturesList\":[],\"enterpriseScaleList\":[],\"topicTypeList\":[],\"enterpriseSpecialList\":[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\",\"20\",\"21\",\"22\",\"23\",\"24\"],\"peopleSpecialList\":[],\"serviceObjectList\":[],\"attachmentList\":[]}");
		SgaPolicyVO data = policyService.getById(id);
		data = SgaPolicyWrapper.build().entityVO(data);
		return R.data(data);
	}

	@GetMapping("/matMatter/{id}")
	public R<SgaPolicyDrawVO> matMatter(@PathVariable(name = "id") Long id) {
//		Object data = JSON.parseObject("{\"id\":2941,\"name\":\"襄州区主营业务收入首次破关奖励\",\"isApply\":\"1\",\"isEntList\":\"\",\"specialClassify\":\"\",\"themeClassify\":\"\",\"serviceObject\":\"\",\"telephone\":\"0710-2863372\",\"status\":\"5\",\"declareStart\":\"2022-06-29 00:00:00\",\"declareEnd\":\"长期有效\",\"declareType\":\"true\",\"completionTime\":10,\"industryType\":\"\",\"industryTypeName\":\"\",\"suitLevel\":\"420607\",\"suitLevelName\":\"襄州区\",\"acceptCondition\":\"以区税务局提供目标企业的增值税应税销售收入金额为依据，年主营业务收入首次突破5亿元、10亿元、30亿元和50亿元的企业\\n\",\"peopleIndustryType\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"peopleSuitLevel\":\"\",\"enterpriseSubjectType\":\"\",\"enterpriseScale\":\"\",\"enterpriseSpecial\":\"\",\"enterpriseSpecialName\":\"\",\"matterType\":\"1\",\"enterpriseNature\":\"\",\"subsidyStandards\":\"以区税务局提供目标企业的增值税应税销售收入金额为依据，对年主营业务收入首次突破5亿元、10亿元、30亿元、50亿元的企业分别给予10万元、30万元、50万元和100万元的一次性奖励\\n\",\"createUser\":\"xzqkkj\",\"createUserDept\":256,\"createTime\":\"2021-11-07 11:15:39\",\"modifiedUser\":\"admin\",\"modifiedUserDept\":2,\"modifiedTime\":\"2021-11-08 17:17:54\",\"delFlag\":\"0\",\"isProcess\":\"0\",\"lcItemId\":\"9759822378464DC69AC839C0499F8CC1\",\"subsidyCostMin\":100000.0,\"subsidyCostMax\":200000.0,\"freeEnterpriseList\":[],\"enjoyEnterpriseList\":[],\"enjoyPeopleList\":[],\"matMatterPolicyFileList\":[],\"specialClassifyList\":[],\"themeClassifyList\":[],\"serviceObjectList\":[],\"suitLevelList\":[\"420607\"],\"industryTypeList\":[],\"industryTypeNameList\":[],\"createUserDeptName\":\"襄州区科经局\",\"deptCode\":\"114206210111821964\",\"matMatterPolicyList\":[],\"peopleIndustryTypeList\":[],\"peopleSpecialList\":[],\"peopleSpecialNameList\":[],\"blankFileList\":[],\"flowFileList\":[],\"matterMaterialList\":[],\"matterProcessList\":[{\"id\":15427,\"link\":\"受理\",\"departmentName\":\"襄州区科经局\",\"departmentId\":\"256\",\"office\":\"政策法规股\",\"staff\":\"政策法规股工作人员\",\"instructions\":\"\",\"status\":\"1\",\"matterId\":2941,\"createTime\":\"2021-11-07 11:16:00\",\"delFlag\":\"0\"},{\"id\":15428,\"link\":\"办理\",\"departmentName\":\"襄州区科经局\",\"departmentId\":\"256\",\"office\":\"政策法规股\",\"staff\":\"政策法规股工作人员\",\"instructions\":\"\",\"status\":\"1\",\"matterId\":2941,\"createTime\":\"2021-11-07 11:16:00\",\"delFlag\":\"0\"},{\"id\":15429,\"link\":\"办结\",\"departmentName\":\"襄州区科经局\",\"departmentId\":\"256\",\"office\":\"政策法规股\",\"staff\":\"政策法规股工作人员\",\"instructions\":\"\",\"status\":\"1\",\"matterId\":2941,\"createTime\":\"2021-11-07 11:16:00\",\"delFlag\":\"0\"}],\"enterpriseSubjectTypeList\":[],\"enterpriseScaleList\":[],\"enterpriseSpecialList\":[],\"enterpriseSpecialNameList\":[],\"enterpriseNatureList\":[]}");
		SgaPolicyDrawVO data = sgaPolicyDrawService.getById(id);
		data = SgaPolicyDrawWrapper.build().entityVO(data);
		return R.data(data);
	}

	@GetMapping("/matMatter/xyPolicyPage")
	public R<IPage<SgaPolicyDrawVO>> xyPolicyPage(Query query, String enterpriseSpecial, String enterpriseCode) {
//		Object data = JSONUtil.parseObj("{\"records\":[{\"id\":3173,\"name\":\"南漳县给予工业企业技术改造项目的奖励（重大的技术改造投资项目企业申报）\",\"implemention\":\"南漳县科学技术和经济信息化局\",\"suitLevel\":\"420624\",\"suitLevelName\":\"南漳县\",\"completionTime\":10,\"isApply\":\"0\",\"modifiedUser\":\"nzxkjj\",\"status\":\"5\",\"createUserDept\":221,\"createUserDeptName\":\"南漳县科学技术和经济信息化局\",\"declareStart\":\"2018-09-19 00:00:00\",\"declareEnd\":\"长期有效\",\"declareType\":\"true\",\"modifiedTime\":\"2022-06-10 16:35:45\"},{\"id\":3172,\"name\":\"南漳县给予工业企业技术改造项目的奖励（战略性新兴产业的技改项目企业申报）\",\"implemention\":\"南漳县科学技术和经济信息化局\",\"suitLevel\":\"420624\",\"suitLevelName\":\"南漳县\",\"completionTime\":10,\"isApply\":\"0\",\"modifiedUser\":\"nzxkjj\",\"status\":\"5\",\"createUserDept\":221,\"createUserDeptName\":\"南漳县科学技术和经济信息化局\",\"declareStart\":\"2018-09-19 00:00:00\",\"declareEnd\":\"长期有效\",\"declareType\":\"true\",\"modifiedTime\":\"2022-06-10 16:35:48\"}],\"total\":55,\"size\":2,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":28}");
		IPage<SgaPolicyDrawVO> data = sgaPolicyDrawService.selectPolicyDrawPage(Condition.getPage(query), null, null, null, null, null, enterpriseSpecial, null, null, null);
		return R.data(data);
	}

	@PostMapping(path = "/matMatter/pushMatterByEnterpriseCode")
	public R<String> pushMatterByEnterpriseCode(@RequestBody Object enterpriseCode) {
		return R.data(JSONUtil.toJsonStr(enterpriseCode));
	}

	@GetMapping("/webInterface/matterWeb/page")
	public R<IPage<SgaPolicyDrawVO>> matterWebPage(Query query, Integer status, Integer isDeclareMatter, String enterpriseNature, String suitLevel, String enterpriseScale, Character industryType, String enterpriseSpecial, String name, String policys) {
		// Object data = JSON.parse("{\"records\":[{\"id\":2941,\"name\":\"襄州区主营业务收入首次破关奖励\",\"implemention\":\"襄州区科经局\",\"suitLevel\":\"420607\",\"suitLevelName\":\"null\",\"completionTime\":10,\"isApply\":\"1\",\"modifiedUser\":\"admin\",\"status\":\"5\",\"createUserDept\":256,\"createUserDeptName\":\"襄州区科经局\",\"declareStart\":\"2022-06-29 00:00:00\",\"declareEnd\":\"长期有效\",\"declareType\":\"true\",\"modifiedTime\":\"2021-11-08 17:17:54\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDrawDetail?policyId=2941\",\"lcItemId\":\"9759822378464DC69AC839C0499F8CC1\"},{\"id\":2943,\"name\":\"襄州区高新技术企业认定奖励\",\"implemention\":\"襄州区科经局\",\"suitLevel\":\"420607\",\"suitLevelName\":\"null\",\"completionTime\":10,\"isApply\":\"1\",\"modifiedUser\":\"admin\",\"status\":\"5\",\"createUserDept\":256,\"createUserDeptName\":\"襄州区科经局\",\"declareStart\":\"2022-06-29 00:00:00\",\"declareEnd\":\"长期有效\",\"declareType\":\"true\",\"modifiedTime\":\"2021-11-08 09:47:07\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDrawDetail?policyId=2943\",\"lcItemId\":\"F2AAB06E3B6A47358A8540216051B15A\"},{\"id\":2945,\"name\":\"襄州区科技创新平台认定奖励\",\"implemention\":\"襄州区科经局\",\"suitLevel\":\"420607\",\"suitLevelName\":\"null\",\"completionTime\":10,\"isApply\":\"1\",\"modifiedUser\":\"admin\",\"status\":\"5\",\"createUserDept\":256,\"createUserDeptName\":\"襄州区科经局\",\"declareStart\":\"2022-06-29 00:00:00\",\"declareEnd\":\"长期有效\",\"declareType\":\"true\",\"modifiedTime\":\"2021-11-08 17:17:50\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDrawDetail?policyId=2945\",\"lcItemId\":\"8BEB9583F1784503954846B2D8F5EC2E\"}],\"total\":308,\"size\":3,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":103}");
		IPage<SgaPolicyDrawVO> data = sgaPolicyDrawService.selectPolicyDrawPage(Condition.getPage(query), status, isDeclareMatter, enterpriseNature, suitLevel, enterpriseScale, enterpriseSpecial, industryType, name, policys);
		return R.data(data);
	}

	@GetMapping("/webInterface/policyWeb/page")
	public R<IPage<SgaPolicyVO>> policyWebPage(Query query, Integer policyType, Long levelId, Character industryType, String policyName) {
		// Object data = JSON.parse("{\"records\":[{\"id\":3780,\"policyName\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局关于进一步做好援企稳岗促就业工作\",\"deptId\":218,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 11:27:58\",\"status\":\"5\",\"startTime\":\"2022-05-07 00:00:00\",\"endTime\":\"2022-12-31 00:00:00\",\"levelId\":\"420000\",\"levelName\":\"湖北省\",\"reason\":\"\",\"policyType\":\"4,5,7,8,23,18\",\"delFlag\":0,\"createTime\":\"2022-06-10 11:10:15\",\"updateTime\":\"2022-06-10 11:27:58\",\"createUserId\":1706,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"鄂人社发〔2022〕21 号\",\"athletsDate\":\"2022-05-07 00:00:00\",\"athletsLevelId\":\"2\",\"athletsOrgId\":\"\",\"athletsOrgName\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局\",\"viewCount\":49,\"athletsOrg\":\"湖北省人力资源和社会保障厅湖北省财政厅国家税务总局湖北省税务局\",\"deptName\":\"南漳县人社局\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDetail?policyId=3780\"},{\"id\":3781,\"policyName\":\"湖北省人力资源社会保障厅关于落实人力资源服务企业失业保险稳岗返还政策有关问题的指导意见\",\"deptId\":218,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 11:27:46\",\"status\":\"6\",\"startTime\":\"2021-06-04 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420000\",\"levelName\":\"湖北省\",\"reason\":\"\",\"policyType\":\"4,5,8,23,22,18\",\"delFlag\":0,\"createTime\":\"2022-06-10 11:17:20\",\"updateTime\":\"2022-06-10 11:27:46\",\"createUserId\":1706,\"serviceObject\":\"\",\"enterpriseSpecial\":\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"鄂人社函〔2021〕101号\",\"athletsDate\":\"2021-06-04 00:00:00\",\"athletsLevelId\":\"2\",\"athletsOrgId\":\"\",\"athletsOrgName\":\"湖北省人力资源社会保障厅\",\"declareType\":\"true\",\"viewCount\":13,\"athletsOrg\":\"湖北省人力资源社会保障厅\",\"deptName\":\"南漳县人社局\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDetail?policyId=3781\"},{\"id\":3782,\"policyName\":\"湖北省财政厅湖北省人力资源和社会保障厅关于湖北省创业担保贷款财政贴息资金管理办法\",\"deptId\":218,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 11:27:43\",\"status\":\"6\",\"startTime\":\"2018-03-27 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420000\",\"levelName\":\"湖北省\",\"reason\":\"\",\"policyType\":\"4,7,8,18,10,9,13\",\"delFlag\":0,\"createTime\":\"2022-06-10 11:22:43\",\"updateTime\":\"2022-06-10 11:27:43\",\"createUserId\":1706,\"athletsNum\":\"鄂财金规〔2018〕5号\",\"athletsDate\":\"2018-03-27 00:00:00\",\"athletsLevelId\":\"2\",\"athletsOrgId\":\"\",\"athletsOrgName\":\"湖北省财政厅湖北省人力资源和社会保障厅\",\"declareType\":\"true\",\"viewCount\":5,\"athletsOrg\":\"湖北省财政厅湖北省人力资源和社会保障厅\",\"deptName\":\"南漳县人社局\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDetail?policyId=3782\"},{\"id\":3783,\"policyName\":\"湖北省财政厅湖北省人力资源和社会保障厅关于湖北省就业补助资金管理办法\",\"deptId\":218,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 11:27:40\",\"status\":\"6\",\"startTime\":\"2017-12-29 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420000\",\"levelName\":\"湖北省\",\"reason\":\"\",\"policyType\":\"4,5,7,8,23,18\",\"delFlag\":0,\"createTime\":\"2022-06-10 11:27:06\",\"updateTime\":\"2022-06-10 11:27:40\",\"createUserId\":1706,\"athletsNum\":\"鄂财社发〔2017〕102号\",\"athletsDate\":\"2017-12-29 00:00:00\",\"athletsLevelId\":\"2\",\"athletsOrgId\":\"\",\"athletsOrgName\":\"湖北省财政厅湖北省人力资源和社会保障厅\",\"declareType\":\"true\",\"viewCount\":6,\"athletsOrg\":\"湖北省财政厅湖北省人力资源和社会保障厅\",\"deptName\":\"南漳县人社局\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDetail?policyId=3783\"},{\"id\":3779,\"policyName\":\"中共襄阳市襄州区委襄阳市襄州区人民政府印发《关于加强科技创新引领高质量发展的实施方案》的通知\",\"deptId\":256,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-10 10:48:53\",\"status\":\"5\",\"startTime\":\"2022-04-12 00:00:00\",\"endTime\":\"2025-04-12 00:00:00\",\"levelId\":\"420607\",\"levelName\":\"襄州区\",\"reason\":\"\",\"policyType\":\"5,7,9,8,6,13,22\",\"delFlag\":0,\"createTime\":\"2022-06-10 10:41:49\",\"updateTime\":\"2022-06-10 10:48:53\",\"createUserId\":1673,\"athletsNum\":\"襄州发〔2022〕9 号\",\"athletsDate\":\"2022-04-12 00:00:00\",\"athletsLevelId\":\"4\",\"athletsOrgId\":\"439,438\",\"athletsOrgName\":\"\",\"viewCount\":8,\"athletsOrg\":\"中共襄阳市襄州区委办公室,襄阳市襄州区人民政府办公室\",\"deptName\":\"襄州区科经局\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDetail?policyId=3779\"},{\"id\":3774,\"policyName\":\"南漳县人民政府办公室关于南漳县鼓励和扶持工业企业技术改造项目奖励办法\",\"deptId\":221,\"publishStatus\":\"1\",\"publishTime\":\"2022-06-09 17:06:00\",\"status\":\"6\",\"startTime\":\"2018-09-19 00:00:00\",\"endTime\":\"长期有效\",\"levelId\":\"420624\",\"levelName\":\"南漳县\",\"reason\":\"\",\"policyType\":\"7,28,24,5,18,9\",\"delFlag\":0,\"createTime\":\"2022-06-09 17:04:49\",\"updateTime\":\"2022-06-09 17:06:00\",\"createUserId\":1707,\"serviceObject\":\"\",\"enterpriseSpecial\":\"3,4,5,6\",\"enterpriseSpecialName\":\"\",\"peopleSpecial\":\"\",\"peopleSpecialName\":\"\",\"athletsNum\":\"南政办发〔2018〕36号\",\"athletsDate\":\"2018-09-19 00:00:00\",\"athletsLevelId\":\"4\",\"athletsOrgId\":\"422\",\"athletsOrgName\":\"\",\"declareType\":\"true\",\"viewCount\":4,\"athletsOrg\":\"南漳县人民政府办公室\",\"deptName\":\"南漳县科学技术和经济信息化局\",\"detailUrl\":\"https://ixy.xiangyang.gov.cn/policyDetail?policyId=3774\"}],\"total\":130,\"size\":6,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":22}");
		IPage<SgaPolicyVO> data = policyService.selectPage(Condition.getPage(query), policyType, levelId, industryType, policyName);
		return R.data(data);
	}

	@PostMapping("/webInterface/policyWeb/count")
	public R<SgaPolicyCountVO> policyWebCount() {
//		Object data = JSON.parse("{\"matterCount\":308,\"polityCount\":130,\"subsidyCost\":21854.8911}");
		SgaPolicyCountVO data = new SgaPolicyCountVO();
		data.setPolityCount(policyService.countPolicy());
		data.setMatterCount(sgaPolicyDrawService.countPolicyDraw());
		data.setSubsidyCost(BigDecimal.valueOf(awardCorporateService.countSubsidyCost() / 10000L));
		return R.data(data);
	}

	@GetMapping("/awardcorporate/page")
	public R<IPage<SgaAwardCorporateVO>> awardCorporatePage(Query query, Integer status) {
//		Object data = JSON.parse("{\"records\":[{\"id\":8392,\"corName\":\"老河口市壹九行超市\",\"corNumber\":\"92420682MA4CB0KK6D\",\"corUserName\":\"\",\"corUserCardId\":\"\",\"corUserMobile\":\"\",\"corBankAccount\":\"42050164708800000550\",\"openBank\":\"中国建设银行股份有限公司老河口支行营业部\",\"policyCashTime\":\"2022-05-23 15:47:12\",\"cashMatterName\":\"老河口市给予当年达到限上商贸企业标准的个体工商户（简称“大个体”）的奖励\",\"cashFund\":960000.0000,\"cashCondition\":\"\",\"\":0,\"remark\":\"\",\"status\":\"1\",\"createTime\":\"2022-05-20 15:21:27\",\"updateTime\":\"2022-05-23 15:47:12\",\"delFlag\":\"0\",\"receiveNumber\":\"I16530312870763147\"},{\"id\":8391,\"corName\":\"襄阳市大润发发到家商贸有限公司\",\"corNumber\":\"91420682MA49QE3M1A\",\"corUserName\":\"\",\"corUserCardId\":\"\",\"corUserMobile\":\"\",\"corBankAccount\":\"82010000004621589\",\"openBank\":\"老河口农村商业银行城区支行\",\"policyCashTime\":\"2022-05-20 15:24:14\",\"cashMatterName\":\"老河口市给予当年新注册（上年第四季度以来注册）并纳入统计的限额以上商贸企业的奖励\",\"cashFund\":20000.0000,\"cashCondition\":\"\",\"\":0,\"remark\":\"\",\"status\":\"1\",\"createTime\":\"2022-05-18 10:50:45\",\"updateTime\":\"2022-05-20 15:24:14\",\"delFlag\":\"0\",\"receiveNumber\":\"I16528422448153148\"},{\"id\":8390,\"corName\":\"襄阳至诚鲜佰荟超市有限公司\",\"corNumber\":\"91420682MA49HH3A2H\",\"corUserName\":\"\",\"corUserCardId\":\"\",\"corUserMobile\":\"\",\"corBankAccount\":\"6232711804000290906\",\"openBank\":\"中国工商银行老河口市支行\",\"policyCashTime\":\"2022-05-20 15:24:04\",\"cashMatterName\":\"老河口市给予当年入统并纳入联网直报统计的限额以上的商贸企业的奖励\",\"cashFund\":840000.0000,\"cashCondition\":\"\",\"\":0,\"remark\":\"\",\"status\":\"1\",\"createTime\":\"2022-05-18 10:41:37\",\"updateTime\":\"2022-05-20 15:24:04\",\"delFlag\":\"0\",\"receiveNumber\":\"I16528416965083146\"},{\"id\":8389,\"corName\":\"襄阳华中科技大学先进制造工程研究院\",\"corNumber\":\"124206000635272999\",\"corUserName\":\"\",\"corUserCardId\":\"\",\"corUserMobile\":\"\",\"corBankAccount\":\"426426353011000007168\",\"openBank\":\"交通银行襄阳开发区支行\",\"policyCashTime\":\"2022-05-17 16:24:08\",\"cashMatterName\":\"襄阳市给予省级创新平台（新型研发机构配套奖励、中试基地绩效考评后补助）\",\"cashFund\":500000.0000,\"cashCondition\":\"\",\"\":0,\"remark\":\"\",\"status\":\"1\",\"createTime\":\"2022-05-17 15:07:23\",\"updateTime\":\"2022-05-17 16:24:08\",\"delFlag\":\"0\",\"receiveNumber\":\"I16527712428012899\"}],\"total\":6761,\"size\":4,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":1691}");
		IPage<SgaAwardCorporateVO> data = awardCorporateService.selectAwardCorporatePage(Condition.getPage(query), status);
		return R.data(data);
	}

	@PostMapping("/hbcaASS/getUserInfo")
	public R<Object> getUserInfo(@RequestBody GetUserInfoDTO dto) {
//		Object data = JSONUtil.parseObj("{\"data\":{\"userStatus\":1,\"realNameLevel\":\"1\",\"roles\":[],\"userPhone\":\"17602202811\",\"userSortnum\":9999,\"policyBaseInfos\":[],\"userIdCode\":\"3ca57da7d2a94a1c857eb46dc4b3c5f7\",\"pbiList\":[],\"unitCode\":\"91421202MA49LERA9H\",\"userModPwdFlag\":0,\"certList\":[],\"userDefault1\":\"0\",\"userEmail\":\"17602202811@qq.com\",\"userAttrList\":[{\"aiEname\":\"taxpayerIdentificationNumber\",\"aiName\":\"纳税人识别号\",\"isPermitUpdate\":1,\"valueVOList\":[],\"aiType\":\"text\",\"valueList\":[],\"isEmpty\":0,\"aiFlowno\":\"5f863c66b6b3462eb847878af22aae6e\",\"aiIsComplex\":0},{\"aiEname\":\"representativeIdcard\",\"aiName\":\"法定代表人身份证号\",\"isPermitUpdate\":1,\"valueVOList\":[],\"aiType\":\"text\",\"valueList\":[{\"isDefault\":0,\"avCode\":\"422801197206250817\",\"avName\":\"representativeIdcard\",\"aiFlowno\":\"5216c538eb5f49ef8847c89c760a924f\"}],\"isEmpty\":0,\"aiFlowno\":\"5216c538eb5f49ef8847c89c760a924f\",\"aiIsComplex\":0},{\"aiEname\":\"taxationNum\",\"aiName\":\"纳税人流水号\",\"isPermitUpdate\":1,\"valueVOList\":[],\"aiType\":\"text\",\"valueList\":[],\"isEmpty\":0,\"aiFlowno\":\"5e4e4a1c9dac4f95b44bb2605a3a6436\",\"aiIsComplex\":0}],\"appUserList\":[],\"unitName\":\"咸宁臻行传媒科技有限公司\",\"groups\":[],\"userName\":\"咸宁臻行传媒科技有限公司\",\"userLoginType\":\"NONE\",\"credenceList\":[{\"uciDefault2\":\"Admin123\",\"pwdModifiedDate\":\"2020-09-04 17:28:25.0\",\"uciDefault1\":\"3722E8BFD5D851A7524288D7D3DDD974\",\"credenceState\":1,\"credenceFlowno\":\"90d98674836542bab524f7078b372762\",\"credenceClass\":\"Credence_002\",\"loginName\":\"7d4e734026234a6e91543efffd53b1cf\",\"userType\":2,\"credenceAppend\":\"{SSHA}J7gk8zi57oPfZXUeVQofQwuMze5NaExWUTNreVFXOTRhc0VF\",\"uniqueid\":\"4a8f63b289f14d3bbb1799404066c1c5\"}],\"createTime\":\"2020-09-04 17:28:26\",\"userExtList\":[],\"organizations\":[],\"orglist\":[{\"orgName\":\"统一身份认证平台\",\"utoFlowno\":\"4ffcf673aa9e43c9a307f87d1ff988c8\",\"orgCode\":\"10011001\",\"userType\":2,\"orgNumber\":\"test\",\"orgFlowno\":\"22bde5d3d1d2479da5ea4811de011ce3\",\"uniqueId\":\"4a8f63b289f14d3bbb1799404066c1c5\"}],\"userType\":2,\"uniqueId\":\"4a8f63b289f14d3bbb1799404066c1c5\",\"duties\":[],\"isCheckData\":\"0\"},\"errorCode\":\"0\"}");
//		return R.data(data);
		Object data = redisUtil.get(CacheNames.UIAS_AUTH_KEY.replace("{1}", dto.getToken()).replace("{0}", dto.getRandom()));
		if (data == null) {
			return R.data(R.fail("登录信息已失效，请重新登录"));
		}
		return R.data(R.data(JsonUtils.textToBean(new SgaJITLoginVO(), String.valueOf(data))));
	}

	@PostMapping("/enterpriseUser/findEntUserInfo")
	public R<Object> findEnterpriseUser(@RequestBody Map<String, Object> map) {
		Map<String, Object> data = new HashMap<>();
//		Object data = JSONUtil.parseObj("{\"enterprise_characteristics\":[{\"labelValue\":\"17\",\"labelName\":\"外贸企业\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"10\",\"labelName\":\"“专精特新”型企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"23\",\"labelName\":\"新三板企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"3\",\"labelName\":\"重点保障企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"21\",\"labelName\":\"异地产业园\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"14\",\"labelName\":\"“四上”在库企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"11\",\"labelName\":\"小型企业双创基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"20\",\"labelName\":\"农业龙头企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"5\",\"labelName\":\"高新技术产业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"24\",\"labelName\":\"其他\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"7\",\"labelName\":\"新型研发机构\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"9\",\"labelName\":\"产业园区\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"19\",\"labelName\":\"工业百强企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"18\",\"labelName\":\"商贸企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"22\",\"labelName\":\"金融业集聚园区\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"1\",\"labelName\":\"上市企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"13\",\"labelName\":\"创业孵化基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"16\",\"labelName\":\"科技成长企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"8\",\"labelName\":\"实训基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"2\",\"labelName\":\"拟上市企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"15\",\"labelName\":\"骨干企业\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"4\",\"labelName\":\"创业载体\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"12\",\"labelName\":\"科技企业孵化器\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"6\",\"labelName\":\"战略性新兴企业\",\"status\":\"normal\",\"selected\":false}],\"enterpriseSpecial\":\"17,22,15,4,12\",\"enterpriseUser\":{\"id\":24,\"orgName\":\"咸宁臻行传媒科技有限公司\",\"creditCode\":\"91421202MA49LERA9H\",\"legalPerson\":\"陈浩\",\"certificateName\":\"身份证\",\"certificateNo\":\"422801197206250817\",\"linkMan\":\"陈浩\",\"contactPhone\":\"18972844041\"},\"isShowEntLabel\":false}");
		if (map.isEmpty()) {
//			data = JSONUtil.parseObj("{\"enterprise_characteristics\":[{\"labelValue\":\"17\",\"labelName\":\"外贸企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"10\",\"labelName\":\"“专精特新”型企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"23\",\"labelName\":\"新三板企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"3\",\"labelName\":\"重点保障企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"21\",\"labelName\":\"异地产业园\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"14\",\"labelName\":\"“四上”在库企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"11\",\"labelName\":\"小型企业双创基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"20\",\"labelName\":\"农业龙头企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"5\",\"labelName\":\"高新技术产业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"24\",\"labelName\":\"其他\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"7\",\"labelName\":\"新型研发机构\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"9\",\"labelName\":\"产业园区\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"19\",\"labelName\":\"工业百强企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"18\",\"labelName\":\"商贸企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"22\",\"labelName\":\"金融业集聚园区\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1\",\"labelName\":\"上市企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"13\",\"labelName\":\"创业孵化基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"16\",\"labelName\":\"科技成长企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"8\",\"labelName\":\"实训基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"2\",\"labelName\":\"拟上市企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"15\",\"labelName\":\"骨干企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"4\",\"labelName\":\"创业载体\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"12\",\"labelName\":\"科技企业孵化器\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"6\",\"labelName\":\"战略性新兴企业\",\"status\":\"normal\",\"selected\":false}],\"isShowEntLabel\":true}");
			List<SgaDictLabelVO> enterpriseCharacteristics = dictService.getDictLabelByType("enterprise_characteristics", "");
			data.put("enterprise_characteristics", enterpriseCharacteristics);
			data.put("isShowEntLabel", true);
			return R.data(data);
		}

		EnterpriseLegalInfoVO legalInfo = enterpriseService.getEnterpriseLegalInfoByCode(String.valueOf(map.get("entUnitCode")));
		if (legalInfo == null) {
			List<SgaDictLabelVO> enterpriseCharacteristics = dictService.getDictLabelByType("enterprise_characteristics", "");
			data.put("enterprise_characteristics", enterpriseCharacteristics);
			data.put("isShowEntLabel", true);
			return R.data(data);
		}

		if (Func.isEmpty(legalInfo.getLinkMan())) {
			legalInfo.setLinkMan(legalInfo.getLegalPerson());
		}

		data.put("enterpriseSpecial", legalInfo.getEnterpriseSpecial());
		data.put("enterpriseUser", legalInfo);
		data.put("isShowEntLabel", false);
		List<SgaDictLabelVO> enterpriseCharacteristics = dictService.getDictLabelByType("enterprise_characteristics", legalInfo.getEnterpriseSpecial());
		data.put("enterprise_characteristics", enterpriseCharacteristics);

		return R.data(data);
	}

	@GetMapping("/enterpriseUser/findEntUserExchangeRecord")
	public R<IPage<MatMatter>> findEntUserExchangeRecord(Query query, String enterpriseCode) {
//		Object data = JSONUtil.parseObj("{\"records\":[],\"total\":0,\"size\":10,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":0}");
		MatMatter matMatter = new MatMatter();
		matMatter.setEnterpriseCode(enterpriseCode);
		IPage<MatMatter> data = matMatterService.page(Condition.getPage(query), Condition.getQueryWrapper(matMatter));
		return R.data(data);
	}

	@GetMapping("/enterpriseUser/findEntUserExchangePopUpRecord")
	public R<Object> findEntUserExchangePopUpRecord(Query query, String enterpriseCode) {
		Object data = JSONUtil.parseObj("{\"records\":[],\"total\":0,\"size\":2,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":0}");
		return R.data(data);
	}

	@PostMapping("/enterpriseUser/findMyLabels")
	public R<Map<String, Object>> findMyLabels(@RequestBody String entUnitCode) {
//		Object data = JSONUtil.parseObj("{\"OBJECT_QUALITY\":[{\"labelValue\":\"1004\",\"labelName\":\"股份制企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1010\",\"labelName\":\"股份合作企业\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"1001\",\"labelName\":\"国有企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1006\",\"labelName\":\"联营企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1007\",\"labelName\":\"外商投资企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1009\",\"labelName\":\"港、澳、台投资企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1005\",\"labelName\":\"有限合伙企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1002\",\"labelName\":\"集体所有制\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1008\",\"labelName\":\"个人独资企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1003\",\"labelName\":\"私营企业\",\"status\":\"normal\",\"selected\":false}],\"enterpriseNature\":\"1010\",\"enterprise_characteristics\":[{\"labelValue\":\"17\",\"labelName\":\"外贸企业\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"10\",\"labelName\":\"“专精特新”型企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"23\",\"labelName\":\"新三板企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"3\",\"labelName\":\"重点保障企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"21\",\"labelName\":\"异地产业园\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"14\",\"labelName\":\"“四上”在库企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"11\",\"labelName\":\"小型企业双创基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"20\",\"labelName\":\"农业龙头企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"5\",\"labelName\":\"高新技术产业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"24\",\"labelName\":\"其他\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"7\",\"labelName\":\"新型研发机构\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"9\",\"labelName\":\"产业园区\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"19\",\"labelName\":\"工业百强企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"18\",\"labelName\":\"商贸企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"22\",\"labelName\":\"金融业集聚园区\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"1\",\"labelName\":\"上市企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"13\",\"labelName\":\"创业孵化基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"16\",\"labelName\":\"科技成长企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"8\",\"labelName\":\"实训基地\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"2\",\"labelName\":\"拟上市企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"15\",\"labelName\":\"骨干企业\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"4\",\"labelName\":\"创业载体\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"12\",\"labelName\":\"科技企业孵化器\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"6\",\"labelName\":\"战略性新兴企业\",\"status\":\"normal\",\"selected\":false}],\"industryType\":\"8\",\"enterpriseSpecial\":\"17,22,15,4,12\",\"object_scale\":[{\"labelValue\":\"1\",\"labelName\":\"大型企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"4\",\"labelName\":\"微型企业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"5\",\"labelName\":\"其他\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"2\",\"labelName\":\"中型企业\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"3\",\"labelName\":\"小型企业\",\"status\":\"normal\",\"selected\":false}],\"PROFESSION_TYPE\":[{\"labelValue\":\"20\",\"labelName\":\"国际组织\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"8\",\"labelName\":\"住宿和餐饮业\",\"status\":\"normal\",\"selected\":true},{\"labelValue\":\"0\",\"labelName\":\"不限\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"10\",\"labelName\":\"金融业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"19\",\"labelName\":\"公共管理、社会保障和社会组织\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"15\",\"labelName\":\"居民服务、修理和其他服务业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"2\",\"labelName\":\"采矿业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"5\",\"labelName\":\"建筑业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"14\",\"labelName\":\"水利、环境和公共设施管理业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"12\",\"labelName\":\"租赁和商务服务业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"16\",\"labelName\":\"教育\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"1\",\"labelName\":\"农、林、牧、渔业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"3\",\"labelName\":\"制造业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"7\",\"labelName\":\"交通运输、仓储和邮政业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"6\",\"labelName\":\"批发和零售业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"9\",\"labelName\":\"信息传输、软件和信息技术服务业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"18\",\"labelName\":\"文化、体育和娱乐业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"4\",\"labelName\":\"电力、热力、燃气及水生产和供应业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"11\",\"labelName\":\"房地产业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"13\",\"labelName\":\"科学研究和技术服务业\",\"status\":\"normal\",\"selected\":false},{\"labelValue\":\"17\",\"labelName\":\"卫生和社会工作\",\"status\":\"normal\",\"selected\":false}],\"enterpriseScale\":\"2\"}");
		Map<String, Object> map = enterpriseService.findMyLabels(entUnitCode);
		return R.data(map);
	}
	@GetMapping("/enterpriseUser/getAllTables")
	public R<Map<String, List<DictItem>>> getAllTables() {
		List<DictItem> dictTypes=dictItemService.getList("label_weight");
		dictTypes.sort(Comparator.comparing(DictItem::getSort));
		Map<String, List<DictItem>> map=new HashMap<>();
		for (DictItem dictType : dictTypes){
			//将type的label由驼峰命名转为横线命名并作为key
			map.put(dictType.getLabel(),dictItemService.getList(dictType.getLabel().replaceAll("([A-Z])", "_$1").toLowerCase()));
		}
		return R.data(map);
	}
	@GetMapping("/enterpriseUser/getAllCNTables")
	public R<List<DictItem>> getAllCNTables() {
		List<DictItem> dictTypes=dictItemService.getList("label_weight");
		return R.data(dictTypes);
	}
	@GetMapping("/enterpriseUser/getEnterpriseByCode")
	public R<Enterprise> getEnterpriseByCode(String entUnitCode) {
		return R.data(enterpriseService.getEnterpriseByCode(entUnitCode));
	}
	@PostMapping("enterpriseUser/updateEnterprise")
	public R updateEnterprise(@RequestBody Enterprise enterprise) {
		if (enterpriseService.updateById(enterprise)) {
			return R.data(R.success("成功"));
		}
		return R.data(R.fail("失败"));
	}
//	@PostMapping("/enterpriseUser/updateMyLabels")
//	public R<Object> updateMyLabels(@RequestBody EnterpriseLabelUpdateDto dto) {
//		if (enterpriseService.updateMyLabels(dto.getCreditCode(), dto.getEnterpriseLabel())) {
//			return R.data(R.success("成功"));
//		}
//		return R.data(R.fail("失败"));
//	}
//
//	@PostMapping("/enterpriseUser/updateEntUserLabel")
//	public R<Object> updateEntUserLabel(@RequestBody EnterpriseLabelUpdateDto dto) {
//		if (enterpriseService.updateMyLabels(dto.getCreditCode(), dto.getEnterpriseLabel())) {
//			return R.data(R.success("成功"));
//		}
//		return R.data(R.fail("失败"));
//	}

	@GetMapping("/outside/hotline_require/page")
	public R<Object> hotlineRequirePage(Query query, String unitCode, Integer onlyMine, String gdTitle) {
		LambdaQueryWrapper<Appeal> queryWrapper = Wrappers.lambdaQuery();
		queryWrapper.eq(Func.isNotBlank(unitCode), Appeal::getUnitCode, unitCode);
		queryWrapper.eq(Func.isBlank(unitCode), Appeal::getIspublic, PolicyConstant.APPEAL_IS_PUBLIC);
		queryWrapper.like(Func.isNotBlank(gdTitle), Appeal::getGdTitle, gdTitle);
		IPage<Appeal> appealVOIPage = appealService.page(Condition.getPage(query), queryWrapper);
		return R.data(appealVOIPage);
	}

	@GetMapping("/outside/hotline_require/getById")
	public R<Object> hotlineRequireGetById(@RequestParam Long id, @RequestParam Integer type) {
		Map<String, Object> data = new ConcurrentHashMap<>(16);
		Appeal byId = appealService.getById(id);
		AppealRecord one = appealRecordService.getByAppealId(id);
		if (type == PolicyConstant.APPEAL_INFO_TYPE_BRIEF) {
			data.put("gdTitle", byId.getGdTitle());
			data.put("createTime", byId.getCreateTime());
			data.put("wtms", byId.getWtms());
			if (one != null) {
				data.put("replyUnit", one.getDeptName());
				data.put("replyTime", one.getCreateTime());
				data.put("replyContent", one.getRemark());
			}
		} else if (type == PolicyConstant.APPEAL_INFO_TYPE_DETAILED) {
			if (Func.isNotBlank(byId.getFile())) {
				LambdaQueryWrapper<File> fileLambdaQueryWrapper = Wrappers.lambdaQuery();
				fileLambdaQueryWrapper.in(File::getId, (Object[]) byId.getFile().split(","));
				List<Map<String, Object>> list = new ArrayList<>(16);
				List<File> list1 = fileService.list(fileLambdaQueryWrapper);
				list1.forEach(i -> {
					Map<String, Object> map = new ConcurrentHashMap<>(16);
					map.put("url", i.getId());
					map.put("fileName", i.getOriginal());
					list.add(map);
				});
				byId.setFiles(list);
			}
			data.put("appeal", byId);
			if (one != null) {
				data.put("replyUnit", one.getDeptName());
				data.put("replyTime", one.getCreateTime());
				data.put("replyContent", one.getRemark());
			}
		}
		return R.data(data);
	}

	@PostMapping("/outside/hotline_require/require_send")
	public R<Object> requireSend(@Valid @RequestBody Appeal appeal) {
		return R.status(appealService.saveOrUpdate(appeal));
	}

	@PostMapping("/outside/policyDrawHandleWeb/cashAccpet")
	public R<Object> cashAccept(@RequestBody CashAcceptDTO cashAcceptDTO) throws Exception {
		//获取redis内token
		String token = redisUtil.get("HBZW-token").toString();
//		//免提交证照匹配查询服务接口，预查询是否库里有证照，若无证照则无需扫码授权
//		Map<String, String> map=new HashMap<>();
//		map.put("thirdUserId","421023200008084916");
//		map.put("companyId","91421202MA49LERA9H");
//		map.put("companyName","咸宁臻行传媒科技有限公司");
//		map.put("userName","陈浩");
//		map.put("phone","15271157623");
//		map.put("idCard","421023200008084916");
//		map.put("cardType","111");
//		String res = policyService.sendPost("/ecpservices/V1/getAppToken",map);
//		//请求返回00000则成功，返回A1903则为token失效

		//token失效时获取token并写入redis


		return R.data(R.status(matMatterService.cashAccpet(cashAcceptDTO)));
	}

	@PostMapping("/proposal/create")
	public R<Object> proposalPage(@RequestBody ProposalCreateDTO proposalCreateDTO) {
		Proposal proposal = new Proposal();
		BeanUtil.copy(proposalCreateDTO, proposal);
		return R.status(proposalService.save(proposal));
	}

	@GetMapping("/proposal/page")
	public R<Object> proposalPage(Query query, String enterpriseCode) {
//		Object data = JSONUtil.parseObj("{\"records\":[],\"total\":0,\"size\":6,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":0}");
		ProposalVO proposalVO = new ProposalVO();
		if (Func.isNotEmpty(enterpriseCode)) {
			proposalVO.setEnterpriseCode(enterpriseCode);
		}
		IPage<ProposalVO> data = proposalService.selectProposalPage(Condition.getPage(query), proposalVO);
		return R.data(data);
	}

	@GetMapping("/proposal/detail/{id}")
	public R<Object> proposalDetail(@PathVariable(name = "id") Long id) {
//		Object data = JSONUtil.parseObj("{\"records\":[],\"total\":0,\"size\":6,\"current\":1,\"orders\":[],\"searchCount\":true,\"pages\":0}");
		Proposal data = proposalService.getById(id);
		return R.data(data);
	}

	@PostMapping("/WebDiskServerDemo/upload")
	public R<Object> WebDiskServerDemoUpload(@RequestPart("file") MultipartFile file) {
		File file1 = fileService.uploadFile(file);
		if (file1 == null) {
			return R.status(false);
		} else {
			return R.data(file1);
		}
	}

	/*
	企业证件
	 */
	@GetMapping("/enterpriseMaterial/list")
	public R<IPage<EnterpriseMaterial>> enterpriseMaterialList(Query query, String enterpriseCode) {
//		IPage<EnterpriseMaterial> pages = enterpriseMaterialService.page(Condition.getPage(query));
//		return R.data(pages);
		IPage<EnterpriseMaterial> pages = enterpriseMaterialService.page(
			Condition.getPage(query),
			new QueryWrapper<EnterpriseMaterial>()
				.eq("enterprise_code", enterpriseCode)
		);
		return R.data(pages);
	}

	@PostMapping("/enterpriseMaterial/save/{enterpriseCode}/{fileName}")
	public R enterpriseMaterialSave(@RequestPart("file") MultipartFile file, @PathVariable(name = "enterpriseCode") String enterpriseCode, @PathVariable(name = "fileName") String fileName) throws IOException {
		File file1 = fileService.uploadFile(file, FileTypeUtil.getType(file.getInputStream()), fileName);
		if (file1.getId() != null) {
			EnterpriseMaterial enterpriseMaterial = new EnterpriseMaterial();
			enterpriseMaterial.setEnterpriseCode(enterpriseCode);
			enterpriseMaterial.setFileId(file1.getId());
			enterpriseMaterial.setName(file1.getOriginal());
			enterpriseMaterial.setSize(file1.getFileSize());
			enterpriseMaterialService.save(enterpriseMaterial);
			return R.data(file1);
		} else {
			return R.status(false);
		}
	}

	@PostMapping("/enterpriseMaterial/save/{enterpriseCode}")
	public R enterpriseMaterialSave(@RequestPart("file") MultipartFile file, @PathVariable(name = "enterpriseCode") String enterpriseCode) throws IOException {
		String fileName = file.getOriginalFilename();
		File file1 = fileService.uploadFile(file, FileTypeUtil.getType(file.getInputStream()), fileName);
		if (file1.getId() != null) {
			EnterpriseMaterial enterpriseMaterial = new EnterpriseMaterial();
			enterpriseMaterial.setEnterpriseCode(enterpriseCode);
			enterpriseMaterial.setFileId(file1.getId());
			enterpriseMaterial.setName(file1.getOriginal());
			enterpriseMaterial.setSize(file1.getFileSize());
			enterpriseMaterialService.save(enterpriseMaterial);
			return R.data(file1);
		} else {
			return R.status(false);
		}
	}

	//	@PostMapping("/enterpriseMaterial/save/{enterpriseCode}")
//	public R enterpriseMaterialSave(@RequestParam String certificateIdentifier,@RequestParam String authCode,@RequestParam String token, HttpServletResponse response,@PathVariable(name = "enterpriseCode") String enterpriseCode) {
//		policyService.downloadFileByPolicyService(certificateIdentifier,authCode,token, response);
//		File file1 = fileService.uploadFile(file);
//		if (file1.getId()!=null) {
//			EnterpriseMaterial enterpriseMaterial=new EnterpriseMaterial();
//			enterpriseMaterial.setEnterpriseCode(enterpriseCode);
//			enterpriseMaterial.setFileId(file1.getId());
//			enterpriseMaterial.setName(file1.getOriginal());
//			enterpriseMaterial.setSize(file1.getFileSize());
//			enterpriseMaterialService.save(enterpriseMaterial);
//			return R.data(file1);
//		} else {
//			return R.status(false);
//		}
//	}
	@PostMapping("/enterpriseMaterial/remove")
	public R enterpriseMaterialRemove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
		List<Long> fileIds = enterpriseMaterialService.listByIds(Func.toLongList(ids)).stream().map(EnterpriseMaterial::getFileId).collect(Collectors.toList());
		fileService.deleteFile(fileIds.toString());
		return R.status(enterpriseMaterialService.deleteLogic(Func.toLongList(ids)));
	}

	/*
	企业项目
	 */
	@GetMapping("/enterpriseProject/detail")
	public R<EnterpriseProject> detail(EnterpriseProject enterpriseProject) {
		EnterpriseProject detail = enterpriseProjectService.getOne(Condition.getQueryWrapper(enterpriseProject));
		return R.data(detail);
	}

	@GetMapping("/enterpriseProject/list")
	public R<IPage<EnterpriseProject>> list(EnterpriseProject enterpriseProject, Query query) {
		IPage<EnterpriseProject> pages = enterpriseProjectService.page(Condition.getPage(query), Condition.getQueryWrapper(enterpriseProject));
		return R.data(pages);
	}

	@GetMapping("/enterpriseProject/page")
	public R<IPage<EnterpriseProjectVO>> page(EnterpriseProjectVO enterpriseProject, Query query) {
		IPage<EnterpriseProjectVO> pages = enterpriseProjectService.selectEnterpriseProjectPage(Condition.getPage(query), enterpriseProject);
		return R.data(pages);
	}

	@PostMapping("/enterpriseProject/save")
	public R save(@Valid @RequestBody EnterpriseProject enterpriseProject) {
		return R.status(enterpriseProjectService.save(enterpriseProject));
	}

	@PostMapping("/enterpriseProject/update")
	public R update(@Valid @RequestBody EnterpriseProject enterpriseProject) {
		return R.status(enterpriseProjectService.updateById(enterpriseProject));
	}

	@PostMapping("/enterpriseProject/submit")
	public R submit(@Valid @RequestBody EnterpriseProject enterpriseProject) {
		return R.status(enterpriseProjectService.saveOrUpdate(enterpriseProject));
	}

	@PostMapping("/enterpriseProject/remove")
	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
		return R.status(enterpriseProjectService.deleteLogic(Func.toLongList(ids)));
	}

	@GetMapping("/hnzw/getToken")
	public R getToken() throws Exception {
		Map<String, String> map = new HashMap<>();
//		map.put("thirdUserId","421023200008084916");
//		map.put("companyId","91421202MA49LERA9H");
//		map.put("companyName","咸宁臻行传媒科技有限公司");
//		map.put("userName","陈浩");
//		map.put("phone","15271157623");
//		map.put("idCard","421023200008084916");
//		map.put("cardType","111");
		return R.data(policyService.getToken(map));
	}

	@GetMapping("/hnzw/getQrCode/{width}")
	public R getQrCode(@PathVariable(name = "width") Integer width, @RequestParam String token, @RequestParam String transactorName, @RequestParam String transactorIdCard) throws Exception {
		String qrCode = policyService.getQrCode(token, transactorName, transactorIdCard);
		Map<String, String> map = new HashMap<>();
		map.put("qrcode", qrCode);
		if (!qrCode.contains("获取失败")) {
			map.put("base64", QrcodeUtils.getQRCodeBase64(qrCode, width, width));
		}
		return R.data(map);
	}

	@GetMapping("/hnzw/getAuthCode")
	public R getAuthCode(@RequestParam String token, @RequestParam String qrCode) throws Exception {
		return R.data(policyService.getAuthCode(token, qrCode));
	}

	@GetMapping("/hnzw/getCertificateList")
	public R getCertificateList(String token, String authCode) throws Exception {
		return R.data(policyService.getCertificateList(token, authCode));
	}

	@GetMapping("/hnzw/download")
	public void minioDownload(@RequestParam String certificateIdentifier, @RequestParam String authCode, @RequestParam String token, HttpServletResponse response) throws Exception {
		policyService.downloadFileByPolicyService(certificateIdentifier, authCode, token, response);
//		return JSONUtil.parseObj(data);
	}

	@GetMapping("/hnzw/getBase64")
	public R getBase64(@RequestParam String certificateIdentifier, @RequestParam String authCode, @RequestParam String token) throws Exception {
		return R.data(policyService.getBase64(certificateIdentifier, authCode, token));
	}

}
